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

This commit is contained in:
Martin Aumueller
2009-01-28 20:49:38 +01:00
parent a33ae02927
commit 1dc1a64e19

View File

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