FakeVim: Fix Ctrl+ shortcuts on Mac.

Wouldn't work if there also was a non-ctrl shortcut for the same key.

Task-number: QTCREATORBUG-3928
Reviewed-by: hjk
This commit is contained in:
con
2011-03-31 10:16:34 +02:00
parent 798225ce0a
commit e849fb6c3f

View File

@@ -409,7 +409,13 @@ public:
bool is(int c) const
{
return m_xkey == c && m_modifiers != Qt::ControlModifier;
return m_xkey == c && m_modifiers !=
#ifdef Q_WS_MAC
Qt::MetaModifier
#else
Qt::ControlModifier
#endif
;
}
bool isControl(int c) const