mirror of https://github.com/linebender/xilem
Ignore synthetic keyinput events for now (#307)
They are unused (and rarely useful), and they cause unwanted behavior.
This commit is contained in:
parent
a8cf86772c
commit
0ef12a7fb6
|
@ -120,7 +120,7 @@ impl ApplicationHandler<accesskit_winit::Event> for MainState<'_> {
|
|||
WinitWindowEvent::KeyboardInput {
|
||||
device_id: _,
|
||||
event,
|
||||
is_synthetic: _,
|
||||
is_synthetic: false, // TODO: Introduce an escape hatch for synthetic keys
|
||||
} => {
|
||||
self.render_root.handle_text_event(TextEvent::KeyboardKey(
|
||||
event,
|
||||
|
|
Loading…
Reference in New Issue