From e72ded21d28cdf6590364c652e8b59c5914995b0 Mon Sep 17 00:00:00 2001 From: Damien Caliste Date: Tue, 29 Nov 2016 17:02:57 +0100 Subject: [PATCH] [fingerterm] Don't apply shift on keys that are accessible only with shift. --- qml/Key.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/qml/Key.qml b/qml/Key.qml index 0aa312e..a144cc6 100644 --- a/qml/Key.qml +++ b/qml/Key.qml @@ -175,7 +175,13 @@ Rectangle { setStickiness(-1); } - window.vkbKeypress(currentCode, keyboard.keyModifiers); + if (shiftActive && code_alt != 0 && code_alt != code) { + // Do not apply shift on alt code that are accessible + // only with shift. + window.vkbKeypress(currentCode, keyboard.keyModifiers & ~Qt.ShiftModifier); + } else { + window.vkbKeypress(currentCode, keyboard.keyModifiers); + } // first non-sticky press will cause the sticky to be released if( !sticky && keyboard.resetSticky != 0 && keyboard.resetSticky !== key ) {