fakevim: add an option to pass Control + <x> directly to Creator core

Original code by dcarr.
This commit is contained in:
hjk
2010-09-24 09:07:08 +02:00
parent 5ad1b35a76
commit 74cf70deaf
5 changed files with 24 additions and 2 deletions

View File

@@ -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