Commit 9d663990 authored by Richard Hult's avatar Richard Hult Committed by Richard Hult

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
parent b4e0b533
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment