aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJarkko Koivikko <jarkko.koivikko@code-q.fi>2017-08-03 15:22:35 +0300
committerJarkko Koivikko <jarkko.koivikko@code-q.fi>2017-08-04 15:51:00 +0000
commitb431f478bce41c22541e27da588256b029c36838 (patch)
treeab84490fced462be387ce8701ef99377918e8cfb /src
parenteb292cddf99b08cc97f404b009d64ea302263390 (diff)
Change default Key::key to uppercase
If a Key does not provide Key::key value, the default value is derived from the first letter of Key::text. However, the key should always be in uppercase. This change forces the default key in uppercase. [ChangeLog] Ensure the default value of Key.key property is uppercase. Change-Id: Ie1879e0f0e5020bdfc0f916d537dbf9cb2f6cb51 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/virtualkeyboard/content/components/Key.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/virtualkeyboard/content/components/Key.qml b/src/virtualkeyboard/content/components/Key.qml
index 620a3a7b..5a376310 100644
--- a/src/virtualkeyboard/content/components/Key.qml
+++ b/src/virtualkeyboard/content/components/Key.qml
@@ -42,6 +42,6 @@ import QtQuick 2.0
BaseKey {
id: keyItem
- key: !functionKey && text.length > 0 ? text.charCodeAt(0) : Qt.Key_unknown
+ key: !functionKey && text.length > 0 ? text.toUpperCase().charCodeAt(0) : Qt.Key_unknown
keyPanelDelegate: keyboard.style ? keyboard.style.keyPanel : undefined
}