forked from AuroraMiddleware/gtk
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:
parent
b4e0b5339b
commit
9d66399094
@ -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:
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user