From e8a84b6c3a220110ea9a9209782ccc674918e49d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Sat, 20 Mar 2004 16:11:23 +0000 Subject: [PATCH] * xterm.c (handle_one_xevent): Do not pass key press events to GTK. --- src/ChangeLog | 5 +++++ src/xterm.c | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 924df0cde7a..22a1851db70 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2004-03-20 Jan Dj,Ad(Brv + + * xterm.c (handle_one_xevent): Do not pass key press events to + GTK. + 2004-03-19 Richard M. Stallman * s/sol2-6.h: Delete previous change. diff --git a/src/xterm.c b/src/xterm.c index 9e34d988b91..2fadc156ff3 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -6217,6 +6217,14 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit) 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); -- 2.39.2