From: Andreas Schwab Date: Mon, 23 Mar 1998 13:02:15 +0000 (+0000) Subject: (popup_get_selection): On receiving a KeyPress event X-Git-Tag: emacs-20.3~1806 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=091556892016a825e82a152545fc48e4728b4b0e;p=emacs.git (popup_get_selection): On receiving a KeyPress event only deactivate the menu when the key is not a modifier key. --- 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) 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