Don't ignore command key in keybindings on OSX

This commit is contained in:
TingPing 2014-05-11 04:29:06 -04:00
parent 9599c29c46
commit fea528c39d
1 changed files with 9 additions and 1 deletions

View File

@ -287,8 +287,16 @@ key_free (gpointer data)
static inline GdkModifierType
key_modifier_get_valid (GdkModifierType mod)
{
GdkModifierType ret;
#ifdef __APPLE__
ret = mod & (GDK_SHIFT_MASK | GDK_CONTROL_MASK | GDK_MOD1_MASK | GDK_META_MASK);
#else
/* These masks work on both Windows and Unix */
return mod & (GDK_SHIFT_MASK | GDK_CONTROL_MASK | GDK_MOD1_MASK);
ret = mod & (GDK_SHIFT_MASK | GDK_CONTROL_MASK | GDK_MOD1_MASK);
#endif
return ret;
}
gboolean