Use SmolStr for text field in KeyPressed event
This commit is contained in:
parent
64d1ce5532
commit
03f5a351c3
4 changed files with 6 additions and 5 deletions
|
|
@ -225,9 +225,7 @@ pub fn window_event(
|
|||
key,
|
||||
modifiers,
|
||||
location,
|
||||
text: text
|
||||
.as_ref()
|
||||
.map(winit::keyboard::SmolStr::to_string),
|
||||
text,
|
||||
}
|
||||
}
|
||||
winit::event::ElementState::Released => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue