Keep keyboard modifiers always in sync in TextInput

This commit is contained in:
Héctor Ramón Jiménez 2022-10-29 04:36:18 +02:00
parent 0eb24bd56a
commit 58d3374229
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -717,10 +717,8 @@ where
Event::Keyboard(keyboard::Event::ModifiersChanged(modifiers)) => { Event::Keyboard(keyboard::Event::ModifiersChanged(modifiers)) => {
let state = state(); let state = state();
if state.is_focused {
state.keyboard_modifiers = modifiers; state.keyboard_modifiers = modifiers;
} }
}
_ => {} _ => {}
} }