Keep keyboard modifiers always in sync in TextInput
This commit is contained in:
parent
0eb24bd56a
commit
58d3374229
1 changed files with 1 additions and 3 deletions
|
|
@ -717,9 +717,7 @@ 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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue