Merge pull request #1636 from techee/kb_osx_fix
Make sure GDK_MOD2_MASK is cleared when getting modifiers.
This commit is contained in:
commit
9185395c40
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user