path: root/src/plugins/platforms/ios/qiosmenu.h
diff options
authorRichard Moe Gustavsen <>2015-08-28 10:57:44 +0200
committerRichard Moe Gustavsen <>2015-09-01 08:49:41 +0000
commitb494d859a7fc18ac3e6d9a57194c1ac7dc1855ab (patch)
tree237eed59f6361da0b937b59ab1fca32325a3c168 /src/plugins/platforms/ios/qiosmenu.h
parent163158bf4f79bb6719ac3c39547ea31acc1cb506 (diff)
iOS: filter first responder actions from edit menu
UIResponderStandardEditActions found in first responder will be prepended to the edit menu automatically (or e.g made available as buttons on the virtual keyboard). So we filter them out to avoid duplicates, and let first responder handle the actions instead. In case of QIOSTextResponder, edit actions will be converted to key events that ends up triggering the shortcuts of the filtered menu items. Change-Id: I046c6cc5b358d8a6f7623e10579e2dcd92f75139 Reviewed-by: Tor Arne Vestbø <>
Diffstat (limited to 'src/plugins/platforms/ios/qiosmenu.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/ios/qiosmenu.h b/src/plugins/platforms/ios/qiosmenu.h
index 5bebcc3cc6..ec23b55507 100644
--- a/src/plugins/platforms/ios/qiosmenu.h
+++ b/src/plugins/platforms/ios/qiosmenu.h
@@ -135,6 +135,7 @@ private:
void toggleShowUsingUIMenuController(bool show);
void toggleShowUsingUIPickerView(bool show);
QIOSMenuItemList visibleMenuItems() const;
+ QIOSMenuItemList filterFirstResponderActions(const QIOSMenuItemList &menuItems);
void repositionMenu();