diff options
author | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2018-08-22 23:25:59 +0300 |
---|---|---|
committer | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2018-08-30 07:03:51 +0000 |
commit | 7f12d8bb06e7cdc932cfcc7a8d1eaf12b74e8eff (patch) | |
tree | 981632136944d0c7315d4db806c980c15a43c26d /tests/auto/inputpanel/data/tst_inputpanel.qml | |
parent | 7d764eecbf69969661003c9f7874fde1e99fcc2a (diff) |
Fix regression in arrow key navigation
When word candidate view contained items and an alternative
keys view was opened by long press key, the word candidate
item was selected together with alternative key.
This regression was introduced in commit e803aec1ea21fd00e13b9535a4b536cc43c26ee4
Change-Id: Ie6f7e1580ddcc5327104eafafc3a10c86e9abb65
Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'tests/auto/inputpanel/data/tst_inputpanel.qml')
-rw-r--r-- | tests/auto/inputpanel/data/tst_inputpanel.qml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/inputpanel/data/tst_inputpanel.qml b/tests/auto/inputpanel/data/tst_inputpanel.qml index 67009c9a..faaf44ce 100644 --- a/tests/auto/inputpanel/data/tst_inputpanel.qml +++ b/tests/auto/inputpanel/data/tst_inputpanel.qml @@ -697,6 +697,17 @@ Rectangle { verify(inputPanel.keyboardInputArea.initialKey === focusKey) verify(inputPanel.wordCandidateView.currentIndex !== -1) + // Select alternative key and check word candidates + verify(inputPanel.navigationKeyClick("e")) + var focusKeyAlt = inputPanel.keyboardInputArea.initialKey + verify(inputPanel.navigationKeyClick("ë")) + verify(inputPanel.wordCandidateView.count > 1) + verify(inputPanel.keyboardInputArea.initialKey === focusKeyAlt) + verify(inputPanel.navigationKeyClick(Qt.Key_Backspace)) + verify(inputPanel.navigationKeyClick(Qt.Key_Backspace)) + verify(inputPanel.navigationKeyClick(Qt.Key_Backspace)) + verify(inputPanel.navigationKeyClick("q")) + // Move focus to word candidate list inputPanel.emulateNavigationKeyClick(Qt.Key_Up) verify(inputPanel.keyboardInputArea.initialKey === null) |