Merge pull request #1636 from techee/kb_osx_fix

Make sure GDK_MOD2_MASK is cleared when getting modifiers.
This commit is contained in:
Colomban Wendling 2017-10-12 15:14:11 -07:00
commit 9185395c40

View File

@ -124,7 +124,10 @@ GdkModifierType keybindings_get_modifiers(GdkModifierType mods)
{ {
#ifdef __APPLE__ #ifdef __APPLE__
if (mods & GDK_MOD2_MASK) if (mods & GDK_MOD2_MASK)
{
mods |= GEANY_PRIMARY_MOD_MASK; mods |= GEANY_PRIMARY_MOD_MASK;
mods &= ~GDK_MOD2_MASK;
}
#endif #endif
return mods & gtk_accelerator_get_default_mod_mask(); return mods & gtk_accelerator_get_default_mod_mask();
} }