forked from qt-creator/qt-creator
FakeVim: Allow to insert space on <S-SPACE>
Change-Id: I20f3e8e6602c35b812e2a1f29fdc2b1b458468e5 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -973,7 +973,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() < ' ')
|
||||||
m_text.clear();
|
m_text.clear();
|
||||||
else if (x.isLetter())
|
else if (x.isLetter())
|
||||||
m_key = x.toUpper().unicode();
|
m_key = x.toUpper().unicode();
|
||||||
@@ -1061,7 +1061,7 @@ public:
|
|||||||
return m_key < a.m_key;
|
return m_key < a.m_key;
|
||||||
// Text for some mapped key cannot be determined (e.g. <C-J>) so if text is not set for
|
// Text for some mapped key cannot be determined (e.g. <C-J>) so if text is not set for
|
||||||
// one of compared keys ignore it.
|
// one of compared keys ignore it.
|
||||||
if (!m_text.isEmpty() && !a.m_text.isEmpty())
|
if (!m_text.isEmpty() && !a.m_text.isEmpty() && m_text != _(" "))
|
||||||
return m_text < a.m_text;
|
return m_text < a.m_text;
|
||||||
return m_modifiers < a.m_modifiers;
|
return m_modifiers < a.m_modifiers;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user