summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-10-14 18:10:36 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-10-17 10:57:55 +0000
commit6c9cb02fd22b19083b4d6d2bb92a3e911b4ec768 (patch)
tree2ea363aa4ca9f024ac178d77154c94a5be902f02 /examples
parent47ba0a465e93946df3ad6f0f39fe15a4da683b0d (diff)
macOS: Don't require marked text before passing mouse down to input context
There are situations where the input context might want the event, even if there's no marked text, for example when long-pressing A with a US keyboard layout and getting the accent popup. In that case we want a press somewhere else in the input item to move the cursor, and commit the current preedit. This is the same approach as NSTextView has, always calling handleEvent, and in line with the recommendation from Apple: https://lists.apple.com/archives/cocoa-dev/2012/May/msg00539.html Change-Id: Iff0861a4e604ab594d1ad4ccbb9367d8e0ffe4ef Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 848e3855f922e56a156ab8275f45cfb7a361acb5) Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions