Commit 09155689 authored by Andreas Schwab's avatar Andreas Schwab
Browse files

(popup_get_selection): On receiving a KeyPress event

only deactivate the menu when the key is not a modifier key.
parent c33be4ad
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment