Commit 1d715abf authored by Martin Aumüller's avatar Martin Aumüller Committed by hjk
Browse files

fakevim: don't try to lower-case keys which have no case



Merge-request: 131
Reviewed-by: default avatarhjk <qtc-committer@nokia.com>
parent 215ad057
......@@ -665,8 +665,9 @@ EventResult FakeVimHandler::Private::handleEvent(QKeyEvent *ev)
moveRight();
if ((mods & Qt::ControlModifier) != 0) {
if (key >= Key_A && key <= Key_Z)
key += 32; // make it lower case
key += 256;
key += 32; // make it lower case
} else if (key >= Key_A && key <= Key_Z && (mods & Qt::ShiftModifier) == 0) {
key += 32;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment