[gtk+/quartz-integration: 105/551] Handle alt/option modifier key with GDK_MOD5_MASK so that it's recognized as a modifier key for acce



commit afc55c5df0dcf309c30fa943b96aed6803e86c8a
Author: John Ralls <jralls ceridwen us>
Date:   Fri Oct 15 12:58:30 2010 -0700

    Handle alt/option modifier key with GDK_MOD5_MASK so that it's recognized as a modifier key for accelerators.

 gdk/quartz/gdkevents-quartz.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c
index 2f8b0c8..ad1daf6 100644
--- a/gdk/quartz/gdkevents-quartz.c
+++ b/gdk/quartz/gdkevents-quartz.c
@@ -249,6 +249,8 @@ get_keyboard_modifiers_from_ns_event (NSEvent *nsevent)
     modifiers |= GDK_CONTROL_MASK;
   if (nsflags & NSCommandKeyMask)
     modifiers |= GDK_MOD1_MASK;
+  if (nsflags & NSAlternateKeyMask)
+      modifiers |= GDK_MOD5_MASK;
 
   return modifiers;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]