Commit e72ded21 authored by Damien Caliste's avatar Damien Caliste

[fingerterm] Don't apply shift on keys that are accessible only with shift.

parent 0ddd69f0
......@@ -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 ) {
......
Markdown is supported
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