aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab1998-03-23 13:02:15 +0000
committerAndreas Schwab1998-03-23 13:02:15 +0000
commit091556892016a825e82a152545fc48e4728b4b0e (patch)
treeda2748a68787c12db3fe762d61ef95a74f877aa8 /src
parentc33be4add61377aa784e961400d7f1021c6c2c04 (diff)
downloademacs-091556892016a825e82a152545fc48e4728b4b0e.tar.gz
emacs-091556892016a825e82a152545fc48e4728b4b0e.zip
(popup_get_selection): On receiving a KeyPress event
only deactivate the menu when the key is not a modifier key.
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 1e6b0b13f1f..09cc1af864c 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1025,8 +1025,12 @@ popup_get_selection (initial_event, dpyinfo, id)
1025 else if (event.type == KeyPress 1025 else if (event.type == KeyPress
1026 && dpyinfo->display == event.xbutton.display) 1026 && dpyinfo->display == event.xbutton.display)
1027 { 1027 {
1028 popup_activated_flag = 0; 1028 KeySym keysym = XLookupKeysym (&event.xkey, 0);
1029 break; 1029 if (!IsModifierKey (keysym))
1030 {
1031 popup_activated_flag = 0;
1032 break;
1033 }
1030 } 1034 }
1031 /* Button presses outside the menu also pop it down. */ 1035 /* Button presses outside the menu also pop it down. */
1032 else if (event.type == ButtonPress 1036 else if (event.type == ButtonPress