Update winit to 0.29.4
This commit is contained in:
parent
dd249a1d11
commit
e819c2390b
19 changed files with 654 additions and 846 deletions
|
|
@ -649,6 +649,7 @@ impl Update {
|
|||
keyboard::Event::KeyPressed {
|
||||
key_code,
|
||||
modifiers,
|
||||
text,
|
||||
} if state.is_focused => {
|
||||
if let Some(motion) = motion(key_code) {
|
||||
let motion =
|
||||
|
|
@ -678,12 +679,15 @@ impl Update {
|
|||
{
|
||||
Some(Self::Paste)
|
||||
}
|
||||
_ => None,
|
||||
_ => {
|
||||
let text = text?;
|
||||
|
||||
edit(Edit::Insert(
|
||||
text.chars().next().unwrap_or_default(),
|
||||
))
|
||||
}
|
||||
}
|
||||
}
|
||||
keyboard::Event::CharacterReceived(c) if state.is_focused => {
|
||||
edit(Edit::Insert(c))
|
||||
}
|
||||
_ => None,
|
||||
},
|
||||
_ => None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue