Mercurial > emacs
diff src/xmenu.c @ 21268:74fc1642fe30
(popup_get_selection): On receiving a KeyPress event
only deactivate the menu when the key is not a modifier key.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Mon, 23 Mar 1998 13:02:15 +0000 |
parents | 50929073a0ba |
children | fa9ff387d260 |
line wrap: on
line diff
--- a/src/xmenu.c Mon Mar 23 12:56:25 1998 +0000 +++ b/src/xmenu.c Mon Mar 23 13:02:15 1998 +0000 @@ -1025,8 +1025,12 @@ else if (event.type == KeyPress && dpyinfo->display == event.xbutton.display) { - popup_activated_flag = 0; - break; + KeySym keysym = XLookupKeysym (&event.xkey, 0); + if (!IsModifierKey (keysym)) + { + popup_activated_flag = 0; + break; + } } /* Button presses outside the menu also pop it down. */ else if (event.type == ButtonPress