Don't steal menu events while the keyboard is grabbed.

2007-06-25  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Don't steal
	menu events while the keyboard is grabbed.

svn path=/trunk/; revision=18231
This commit is contained in:
Richard Hult 2007-06-25 19:54:04 +00:00 committed by Richard Hult
parent b4e0b5339b
commit 9d66399094
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-06-25 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Don't steal
menu events while the keyboard is grabbed.
2007-06-25 Richard Hult <richard@imendio.com>
* gdk/quartz/Makefile.am:

View File

@ -1533,7 +1533,9 @@ gdk_event_translate (NSEvent *nsevent)
/* Special-case menu shortcut events. We create command events for
* those and forward to the corresponding menu.
*/
if ([nsevent type] == NSKeyDown)
if ((!_gdk_quartz_keyboard_grab_window ||
(_gdk_quartz_keyboard_grab_window && keyboard_grab_owner_events)) &&
[nsevent type] == NSKeyDown)
{
EventRef event_ref;
MenuRef menu_ref;