Commit 01935a8a authored by Martin Aumüller's avatar Martin Aumüller Committed by hjk
Browse files

fakevim: let ctrl-[ trigger the same action as the escape key



Merge-request: 131
Reviewed-by: default avatarhjk <qtc-committer@nokia.com>
parent 2ee91c8a
......@@ -1932,7 +1932,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
} else if (key == control(Key_BracketRight)) {
handleCommand("tag");
} else if (key == Key_Escape) {
} else if (key == Key_Escape || key == control(Key_BracketLeft)) {
if (isVisualMode()) {
leaveVisualMode();
} else if (m_submode != NoSubMode) {
......@@ -2134,7 +2134,7 @@ EventResult FakeVimHandler::Private::handleMiniBufferModes(int key, int unmodifi
{
Q_UNUSED(text)
if (key == Key_Escape || key == control('c')) {
if (key == Key_Escape || key == control('c') || key == control(Key_BracketLeft)) {
m_commandBuffer.clear();
enterCommandMode();
updateMiniBuffer();
......
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