diff --git a/src/winit_event_loop.rs b/src/winit_event_loop.rs index a05ec6c..de2d8cd 100644 --- a/src/winit_event_loop.rs +++ b/src/winit_event_loop.rs @@ -384,7 +384,7 @@ where _ => None, }; - if let Some(key) = key { + if let (Some(key), true) = (key, key_event.state == ElementState::Pressed) { self.cx.process(&self.view, &Event::Key(key)) } }