1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-26 03:02:17 -05:00

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

View File

@ -287,8 +287,16 @@ key_free (gpointer data)
static inline GdkModifierType static inline GdkModifierType
key_modifier_get_valid (GdkModifierType mod) 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 */ /* 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 gboolean