changeset 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 93e8bd3487a6
children b0a078151291
files src/ChangeLog src/xterm.c
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat Mar 20 15:05:40 2004 +0000
+++ b/src/ChangeLog	Sat Mar 20 16:11:23 2004 +0000
@@ -1,3 +1,8 @@
+2004-03-20  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
+
+	* xterm.c (handle_one_xevent): Do not pass key press events to
+	GTK.
+
 2004-03-19  Richard M. Stallman  <rms@gnu.org>
 
 	* s/sol2-6.h: Delete previous change.
--- 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);