From 2ef974f729bef8516063d9d26af2579f2d8d8d9c Mon Sep 17 00:00:00 2001 From: David Rowe Date: Thu, 13 Oct 2016 12:16:02 +1300 Subject: [PATCH] Fix alphabetic shift --- interface/resources/qml/controls-uit/Keyboard.qml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/interface/resources/qml/controls-uit/Keyboard.qml b/interface/resources/qml/controls-uit/Keyboard.qml index 11a06ba63c..4c617420b6 100644 --- a/interface/resources/qml/controls-uit/Keyboard.qml +++ b/interface/resources/qml/controls-uit/Keyboard.qml @@ -65,10 +65,12 @@ Item { onShiftModeChanged: { forEachKey(function (key) { - if (shiftMode) { - key.glyph = keyboardBase.toUpper(key.glyph); - } else { - key.glyph = keyboardBase.toLower(key.glyph); + if (/[a-z]/i.test(key.glyph)) { + if (shiftMode) { + key.glyph = keyboardBase.toUpper(key.glyph); + } else { + key.glyph = keyboardBase.toLower(key.glyph); + } } }); }