Fix stuck modifiers (#385)

fixes #357
This commit is contained in:
Kenichi Nakamura
2026-02-22 08:45:14 -08:00
committed by GitHub
parent e8ff3957df
commit bcf9c35301

View File

@@ -416,7 +416,10 @@ impl Emulation for MacOSEmulation {
return Ok(());
}
};
update_modifiers(&self.modifier_state, key, state);
let is_modifier = update_modifiers(&self.modifier_state, key, state);
if is_modifier {
modifier_event(self.event_source.clone(), self.modifier_state.get());
}
match state {
// pressed
1 => self.spawn_repeat_task(code).await,