Merge from gtk-2-0:

2002-09-25  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkevents-win32.c (gdk_event_translate):
	WM_SYSKEYDOWN, WM_SYSKEYUP: Need to handle F10 specially here in
	order to be able to handle it normally in the application. Set
	ignore_wm_char also always when handling WM_SYSKEY{DOWN,UP}, this
	way we can generate GDK events also for Alt-Fn keys, for instance.
This commit is contained in:
Tor Lillqvist 2002-09-24 21:53:19 +00:00 committed by Tor Lillqvist
parent beb31ce0f0
commit e53e9652a5
7 changed files with 52 additions and 4 deletions

View File

@ -1,3 +1,11 @@
2002-09-25 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate):
WM_SYSKEYDOWN, WM_SYSKEYUP: Need to handle F10 specially here in
order to be able to handle it normally in the application. Set
ignore_wm_char also always when handling WM_SYSKEY{DOWN,UP}, this
way we can generate GDK events also for Alt-Fn keys, for instance.
2002-09-24 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkx.h: Add a missing ; to make things compile.

View File

@ -1,3 +1,11 @@
2002-09-25 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate):
WM_SYSKEYDOWN, WM_SYSKEYUP: Need to handle F10 specially here in
order to be able to handle it normally in the application. Set
ignore_wm_char also always when handling WM_SYSKEY{DOWN,UP}, this
way we can generate GDK events also for Alt-Fn keys, for instance.
2002-09-24 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkx.h: Add a missing ; to make things compile.

View File

@ -1,3 +1,11 @@
2002-09-25 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate):
WM_SYSKEYDOWN, WM_SYSKEYUP: Need to handle F10 specially here in
order to be able to handle it normally in the application. Set
ignore_wm_char also always when handling WM_SYSKEY{DOWN,UP}, this
way we can generate GDK events also for Alt-Fn keys, for instance.
2002-09-24 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkx.h: Add a missing ; to make things compile.

View File

@ -1,3 +1,11 @@
2002-09-25 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate):
WM_SYSKEYDOWN, WM_SYSKEYUP: Need to handle F10 specially here in
order to be able to handle it normally in the application. Set
ignore_wm_char also always when handling WM_SYSKEY{DOWN,UP}, this
way we can generate GDK events also for Alt-Fn keys, for instance.
2002-09-24 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkx.h: Add a missing ; to make things compile.

View File

@ -1,3 +1,11 @@
2002-09-25 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate):
WM_SYSKEYDOWN, WM_SYSKEYUP: Need to handle F10 specially here in
order to be able to handle it normally in the application. Set
ignore_wm_char also always when handling WM_SYSKEY{DOWN,UP}, this
way we can generate GDK events also for Alt-Fn keys, for instance.
2002-09-24 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkx.h: Add a missing ; to make things compile.

View File

@ -1,3 +1,11 @@
2002-09-25 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate):
WM_SYSKEYDOWN, WM_SYSKEYUP: Need to handle F10 specially here in
order to be able to handle it normally in the application. Set
ignore_wm_char also always when handling WM_SYSKEY{DOWN,UP}, this
way we can generate GDK events also for Alt-Fn keys, for instance.
2002-09-24 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkx.h: Add a missing ; to make things compile.

View File

@ -2178,7 +2178,7 @@ gdk_event_translate (GdkDisplay *display,
decode_key_lparam (msg->lParam)));
/* If posted without us having keyboard focus, ignore */
if (!(msg->lParam & 0x20000000))
if (msg->wParam != VK_F10 && !(HIWORD (msg->lParam) & KF_ALTDOWN))
break;
/* Let the system handle Alt-Tab, Alt-Enter and Alt-F4 */
@ -2209,10 +2209,10 @@ gdk_event_translate (GdkDisplay *display,
msg->wParam,
decode_key_lparam (msg->lParam)));
ignore_wm_char = TRUE;
keyup_or_down:
ignore_wm_char = TRUE;
event->key.window = window;
switch (msg->wParam)
@ -2458,7 +2458,7 @@ gdk_event_translate (GdkDisplay *display,
if (!propagate (&window, msg,
k_grab_window, k_grab_owner_events, GDK_ALL_EVENTS_MASK,
doesnt_want_key))
break;
break;
ASSIGN_WINDOW (window);
is_altgr_key = FALSE;