diff src/xterm.c @ 54451:66000dbe48c9

* xterm.c (handle_one_xevent): Do not pass key press events to GTK.
author Jan Djärv <jan.h.d@swipnet.se>
date Sat, 20 Mar 2004 16:11:23 +0000
parents f6e4e454800a
children 9dc8330eda34 108bb5537c12
line wrap: on
line diff
--- a/src/xterm.c	Sat Mar 20 15:05:40 2004 +0000
+++ b/src/xterm.c	Sat Mar 20 16:11:23 2004 +0000
@@ -6217,6 +6217,14 @@
           Lisp_Object coding_system = Qlatin_1;
 	  Lisp_Object c;
 
+#ifdef USE_GTK
+          /* Don't pass keys to GTK.  A Tab will shift focus to the
+             tool bar in GTK 2.4.  Keys will still go to menus and
+             dialogs because in that case popup_activated is TRUE
+             (see above).  */
+          *finish = X_EVENT_DROP;
+#endif
+
           event.xkey.state
             |= x_emacs_to_x_modifiers (FRAME_X_DISPLAY_INFO (f),
                                        extra_keyboard_modifiers);