Commit 355871a1 authored by hjk's avatar hjk

fakevim: parse <Esc> from script files

parent 752066d0
......@@ -505,6 +505,9 @@ void Inputs::parseFrom(const QString &str)
} else if (c1 == 'C' && c2 == 'R' && c3 == '>') {
append(Input(Key_Return, Qt::NoModifier, QString(QChar(13))));
i += 3;
} else if (c1 == 'E' && c2 == 's' && c3 == 'c' && c4 == '>') {
append(Input(Key_Escape, Qt::NoModifier, QString(QChar(27))));
i += 4;
} else {
append(Input(QLatin1Char(c0)));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment