diff options
author | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2020-02-13 08:51:05 +0200 |
---|---|---|
committer | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2020-02-14 11:45:02 +0200 |
commit | feb790953b30d23cbbcacd89d0972997c4ad9ab9 (patch) | |
tree | 021df1fc2df9eb8db2a4c1841b6ccfec62237afb | |
parent | 01d0cb221231adfbddb5cb5c4f3ea6e016bbb3bb (diff) |
Fix the long press function on the symbol mode key
- Symbol mode key has a function which allows to select a symbol
from symbol page by long press of the key and moving the finger
to a key on the symbol page. However, if the finger was not moved
away from the symbol key, it simulated a click on the symbol key,
causing it to switch back to main layout. The simulated click is
is needed for the function keys to allow switching between multiple
pages (e.g. the 1/2 key) of symbols without lifting the finger.
- Fix this bug by not simulating the click on the symbols key.
Task-number: QTBUG-77753
Change-Id: I6795cb1bb40435d0d640ad47543e57db0f356dc9
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r-- | src/virtualkeyboard/content/components/Keyboard.qml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/virtualkeyboard/content/components/Keyboard.qml b/src/virtualkeyboard/content/components/Keyboard.qml index 347f1076..4557b61f 100644 --- a/src/virtualkeyboard/content/components/Keyboard.qml +++ b/src/virtualkeyboard/content/components/Keyboard.qml @@ -1078,8 +1078,12 @@ Item { InputContext.inputEngine.virtualKeyCancel() setActiveKey(key) press(key, false) - if (dragSymbolMode) - pressAndHoldTimer.restart() + if (dragSymbolMode) { + if (key.functionKey && key.key !== Qt.Key_Context1) + pressAndHoldTimer.restart() + else + pressAndHoldTimer.stop() + } } } } |