changeset 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 5396874c652c
children b25d5f1dd2de
files src/xmenu.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
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