summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2022-01-16 08:21:04 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-01-16 08:21:04 +0200
commit916b2926c5907ef885743836bd50c3c1ef721f30 (patch)
tree569532350d0a5fd93ee5496117dd5add020feb0d
parent1c0eff7640bdfca33caa6e24cfabc0fc3b5de137 (diff)
Fixed context menu in input fields
The menu was being dismissed immediately.
-rw-r--r--src/ui/util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/util.c b/src/ui/util.c
index 77d9a63a..8bf31c33 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -705,6 +705,9 @@ static iBool menuHandler_(iWidget *menu, const char *cmd) {
705 closeMenu_Widget(menu); 705 closeMenu_Widget(menu);
706 return iTrue; 706 return iTrue;
707 } 707 }
708 if (equal_Command(cmd, "contextclick") && pointer_Command(cmd) == menu) {
709 return iFalse;
710 }
708 if (deviceType_App() == phone_AppDeviceType && equal_Command(cmd, "keyboard.changed") && 711 if (deviceType_App() == phone_AppDeviceType && equal_Command(cmd, "keyboard.changed") &&
709 arg_Command(cmd) == 0) { 712 arg_Command(cmd) == 0) {
710 /* May need to reposition the menu. */ 713 /* May need to reposition the menu. */