aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/fakevim
diff options
context:
space:
mode:
authorLukas Holecek <hluk@email.cz>2015-12-16 14:10:32 +0100
committerhjk <hjk@theqtcompany.com>2015-12-16 14:54:43 +0000
commitecf3eb1d9e440f47029e85f1c2da13e0631160db (patch)
tree185f1e7ac6b96269faf0835d0cfb61b5fdc015f9 /src/plugins/fakevim
parenta5b85651ddc752fcf04d4369c627269d6d657875 (diff)
FakeVim: Handle Ctrl+[ with Russian keyboard layout
Task-number: QTCREATORBUG-15261 Change-Id: I6b63fdce965347dc883c72223b482883beccbb80 Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/plugins/fakevim')
-rw-r--r--src/plugins/fakevim/fakevimhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/fakevim/fakevimhandler.cpp b/src/plugins/fakevim/fakevimhandler.cpp
index 67bdb18178e..9926f57eb70 100644
--- a/src/plugins/fakevim/fakevimhandler.cpp
+++ b/src/plugins/fakevim/fakevimhandler.cpp
@@ -994,7 +994,7 @@ public:
// cursor keys. This breaks some of the logic later on
// relying on text() being empty for "special" keys.
// FIXME: Check the real conditions.
- if (x.unicode() < ' ')
+ if (x.unicode() < ' ' && x.unicode() != 27)
m_text.clear();
else if (x.isLetter())
m_key = x.toUpper().unicode();