forked from qt-creator/qt-creator
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:
@@ -409,7 +409,13 @@ public:
|
|||||||
|
|
||||||
bool is(int c) const
|
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
|
bool isControl(int c) const
|
||||||
|
|||||||
Reference in New Issue
Block a user