FakeVim: Handle Ctrl+[ with Russian keyboard layout

Task-number: QTCREATORBUG-15261
Change-Id: I6b63fdce965347dc883c72223b482883beccbb80
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Lukas Holecek
2015-12-16 14:10:32 +01:00
committed by hjk
parent a5b85651dd
commit ecf3eb1d9e

View File

@@ -994,7 +994,7 @@ public:
// cursor keys. This breaks some of the logic later on // cursor keys. This breaks some of the logic later on
// relying on text() being empty for "special" keys. // relying on text() being empty for "special" keys.
// FIXME: Check the real conditions. // FIXME: Check the real conditions.
if (x.unicode() < ' ') if (x.unicode() < ' ' && x.unicode() != 27)
m_text.clear(); m_text.clear();
else if (x.isLetter()) else if (x.isLetter())
m_key = x.toUpper().unicode(); m_key = x.toUpper().unicode();