1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-18 10:16:51 +00:00

* xterm.c (handle_one_xevent): Do not pass key press events to

GTK.
This commit is contained in:
Jan Djärv 2004-03-20 16:11:23 +00:00
parent e4aaf69c6a
commit e8a84b6c3a
2 changed files with 13 additions and 0 deletions

View File

@ -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.

View File

@ -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);