Commit 6424bd58 authored by Martin Aumueller's avatar Martin Aumueller Committed by hjk
Browse files

fakevim: return false from eventFilter when key has not been handled

(makes standard key bindings work)
parent eb5f4774
......@@ -511,7 +511,7 @@ void FakeVimHandler::Private::showBlackMessage(const QString &msg)
bool FakeVimHandler::Private::handleCommandMode(int key, const QString &text)
{
Q_UNUSED(text)
bool handled = true;
if (m_submode == RegisterSubMode) {
m_register = key;
......@@ -834,9 +834,11 @@ bool FakeVimHandler::Private::handleCommandMode(int key, const QString &text)
leaveVisualMode();
} else {
qDebug() << "Ignored in command mode: " << key << text;
return false;
if (text.isEmpty())
handled = false;
}
return true;
return handled;
}
bool FakeVimHandler::Private::handleInsertMode(int key, const QString &text)
......
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