and `area'.
(XTread_socket) <KeyPress>: Pass KeyPress events when in menu to toolkit
library.
struct frame *f = XFRAME (w->frame);
struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f);
Cursor cursor = dpyinfo->vertical_scroll_bar_cursor;
- struct glyph_row *row;
- int i, area, charpos;
+ int charpos;
Lisp_Object string, help, map, pos;
if (portion == 1 || portion == 3)
goto OTHER;
case KeyPress:
+
+ /* Dispatch KeyPress events when in menu. */
+ if (popup_activated_flag)
+ goto OTHER;
+
f = x_any_window_to_frame (dpyinfo, event.xkey.window);
if (!dpyinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight))