forked from qt-creator/qt-creator
fakevim: add an option to pass Control + <x> directly to Creator core
Original code by dcarr.
This commit is contained in:
@@ -1027,8 +1027,9 @@ bool FakeVimHandler::Private::wantsOverride(QKeyEvent *ev)
|
||||
return true;
|
||||
}
|
||||
|
||||
// We are interested in overriding most Ctrl key combinations
|
||||
// We are interested in overriding most Ctrl key combinations
|
||||
if (mods == Qt::ControlModifier
|
||||
&& !config(ConfigPassControlKey).toBool()
|
||||
&& ((key >= Key_A && key <= Key_Z && key != Key_K)
|
||||
|| key == Key_BracketLeft || key == Key_BracketRight)) {
|
||||
// Ctrl-K is special as it is the Core's default notion of Locator
|
||||
|
||||
Reference in New Issue
Block a user