Skip to content

Commit

Permalink
[fingerterm] Don't apply shift on keys that are accessible only with …
Browse files Browse the repository at this point in the history
…shift.
  • Loading branch information
dcaliste committed Dec 5, 2016
1 parent 0ddd69f commit e72ded2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion qml/Key.qml
Expand Up @@ -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 ) {
Expand Down

0 comments on commit e72ded2

Please sign in to comment.