Commit 1dc1a64e authored by Martin Aumueller's avatar Martin Aumueller
Browse files

fakevim: if Escape key serves no function, ignore it and let it be handled by the application

parent a33ae029
...@@ -1221,6 +1221,8 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified, ...@@ -1221,6 +1221,8 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
} else if (key == Key_Escape) { } else if (key == Key_Escape) {
if (m_visualMode != NoVisualMode) if (m_visualMode != NoVisualMode)
leaveVisualMode(); leaveVisualMode();
else
handled = false;
} else { } else {
qDebug() << "IGNORED IN COMMAND MODE: " << key << text; qDebug() << "IGNORED IN COMMAND MODE: " << key << text;
if (text.isEmpty()) if (text.isEmpty())
......
Supports Markdown
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