diff options
author | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2016-12-18 19:46:52 +0200 |
---|---|---|
committer | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2016-12-19 18:58:40 +0000 |
commit | 8ce9006f21bc2d6a0f703ebdb7cfe92cfeeb9c5e (patch) | |
tree | 1430ab14317105219dd73aa66c603e0f9fbcf935 /src/virtualkeyboard/content/components/Keyboard.qml | |
parent | 25dfc588ac541be99a490ea9a76cc38660504fd2 (diff) |
Use uppercase property
Since we now have InputCase.uppercase property, use it instead of
InputContext.shift where appropriate.
By using the uppercase property, we ensure any future modification
to ShiftHandler does not break uppercase handling.
The uppercase property is true when either shift or capsLock properties
are true.
Change-Id: I5bdd4431f66619ac944f70273a0a89ba4c750026
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/virtualkeyboard/content/components/Keyboard.qml')
-rw-r--r-- | src/virtualkeyboard/content/components/Keyboard.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/virtualkeyboard/content/components/Keyboard.qml b/src/virtualkeyboard/content/components/Keyboard.qml index f948f303..bd4ea193 100644 --- a/src/virtualkeyboard/content/components/Keyboard.qml +++ b/src/virtualkeyboard/content/components/Keyboard.qml @@ -634,7 +634,7 @@ Item { function click(key) { if (key && key.enabled) { if (!key.noKeyEvent) - InputContext.inputEngine.virtualKeyClick(key.key, InputContext.shift ? key.text.toUpperCase() : key.text, InputContext.shift ? Qt.ShiftModifier : 0) + InputContext.inputEngine.virtualKeyClick(key.key, InputContext.uppercase ? key.text.toUpperCase() : key.text, InputContext.uppercase ? Qt.ShiftModifier : 0) key.clicked() } } |