aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorJarkko Koivikko <jarkko.koivikko@code-q.fi>2017-08-02 10:10:09 +0300
committerJarkko Koivikko <jarkko.koivikko@code-q.fi>2017-08-04 15:50:44 +0000
commita0b84f2f3f6f5fdfef5efcdf80d3c3fe7a887233 (patch)
treeaa20ab00cd1ee55ddd45de101be31ef907335b44 /tests/auto
parentd3543cadc85b47b1fa5fb0f5de2fb597a2cbb23f (diff)
Prefer current input mode when switching between handwriting mode
If a keyboard layout provides multiple choices for input modes (e.g. latin and cyrillic), prefer the current choice when switching to handwriting layout and back. Also, use the same mechanism to avoid binding loop when switching input mode with InputModeKey contained in a KeyboardLayoutLoader where the layout depends on the input mode. Change-Id: If7adae92db39f3b1e49ec362679e6b6ae7f32fa4 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/inputpanel/data/inputpanel/inputpanel.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/inputpanel/data/inputpanel/inputpanel.qml b/tests/auto/inputpanel/data/inputpanel/inputpanel.qml
index 4fc167e4..1113a268 100644
--- a/tests/auto/inputpanel/data/inputpanel/inputpanel.qml
+++ b/tests/auto/inputpanel/data/inputpanel/inputpanel.qml
@@ -555,7 +555,7 @@ InputPanel {
function setHandwritingMode(enabled) {
if (inputPanel.keyboard.handwritingMode !== enabled) {
if (!enabled || inputPanel.keyboard.isHandwritingAvailable())
- inputPanel.keyboard.handwritingMode = enabled
+ inputPanel.keyboard.setHandwritingMode(enabled, true)
}
return inputPanel.keyboard.handwritingMode === enabled
}