Commit 881bf34e authored by Daiki Ueno's avatar Daiki Ueno
Browse files

Handle the case when both shift and altgr keys are pressed.

parent 67873080
...@@ -361,7 +361,10 @@ eek_keyboard_real_key_released (EekKeyboard *self, ...@@ -361,7 +361,10 @@ eek_keyboard_real_key_released (EekKeyboard *self,
priv->modifiers ^= modifier; priv->modifiers ^= modifier;
break; break;
case EEK_MODIFIER_BEHAVIOR_LATCH: case EEK_MODIFIER_BEHAVIOR_LATCH:
priv->modifiers = (priv->modifiers ^ modifier) & modifier; if (modifier == priv->alt_gr_mask || modifier == EEK_SHIFT_MASK)
priv->modifiers ^= modifier;
else
priv->modifiers = (priv->modifiers ^ modifier) & modifier;
break; break;
} }
set_level_from_modifiers (self); set_level_from_modifiers (self);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment