summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/android
diff options
context:
space:
mode:
authorTor Arne Vestbø <torarnv@gmail.com>2021-02-10 12:09:17 +0100
committerTor Arne Vestbø <torarnv@gmail.com>2021-02-11 15:01:45 +0100
commitf0f00dbd119e0169bc81aa761e4d548e4ecf2214 (patch)
tree00ae8c5f6ceae281d8d9978343c138ae6bb7049d /src/plugins/platforms/android
parentbda8d7a0b003f982cdb5e9b985711306a2602fbd (diff)
iOS: Disable three-finger-tap editing interaction menu when there's no focus object
A typical Qt application, such as a QML application, is a single full screen QUIView, containing all of the granular controls of the UI. The view accepts first responder status, so that we can pass on text input to a possible text field inside the UI. That however triggers iOS to bring up the editing interaction menu whenever the user taps with three fingers, as iOS can't know that only parts of our view is suitable for interaction. To mitigate that we override the editingInteractionConfiguration getter of the view, as documented, and dynamically report the correct enablement based on whether we have an active focus object that accepts input. This works because iOS queries the getter from the three finger tap gesture recognizer, before showing the menu. Change-Id: I0874340c42e437e1d7251896993f2eafe122f09e Fixes: QTBUG-89735 Pick-to: 6.0 6.1 5.15 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/plugins/platforms/android')
0 files changed, 0 insertions, 0 deletions