Ignore synthetic keyinput events for now (#307)

They are unused (and rarely useful), and they cause unwanted behavior.
This commit is contained in:
Aaron Muir Hamilton 2024-05-16 16:18:16 +02:00 committed by GitHub
parent a8cf86772c
commit 0ef12a7fb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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,