aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJarkko Koivikko <jarkko.koivikko@code-q.fi>2016-12-28 20:20:26 +0200
committerJarkko Koivikko <jarkko.koivikko@code-q.fi>2017-01-14 10:42:52 +0000
commit0b52c34bdc390788c9e5cb8ea3e9d3ca6f9d7695 (patch)
tree6fc08f1a98a0cf36370ad6bdc3ecf94928b3e4af /src
parent0a8c8dfc6d4e2b95195b855fcdd1fbd852fdb679 (diff)
Reset symbol mode
Reset symbol mode when: - keyboard is dismissed - input focus changes. Change-Id: I59207543d25755409e400a365777933fb23c2196 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/virtualkeyboard/content/components/Keyboard.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/virtualkeyboard/content/components/Keyboard.qml b/src/virtualkeyboard/content/components/Keyboard.qml
index e666cc02..a1430a21 100644
--- a/src/virtualkeyboard/content/components/Keyboard.qml
+++ b/src/virtualkeyboard/content/components/Keyboard.qml
@@ -85,6 +85,8 @@ Item {
height: wordCandidateView.height + keyboardBackground.height
onActiveChanged: {
hideLanguagePopup()
+ if (active && symbolMode && !preferNumbers)
+ symbolMode = false
keyboardInputArea.reset()
}
onActiveKeyChanged: {
@@ -140,7 +142,11 @@ Item {
Connections {
target: InputContext
- onInputItemChanged: keyboard.hideLanguagePopup()
+ onInputItemChanged: {
+ keyboard.hideLanguagePopup()
+ if (active && symbolMode && !preferNumbers)
+ symbolMode = false
+ }
onFocusChanged: {
if (InputContext.focus)
updateInputMethod()