diff --git a/core/src/keyboard/event.rs b/core/src/keyboard/event.rs index 26c457170a..0c97d26fd5 100644 --- a/core/src/keyboard/event.rs +++ b/core/src/keyboard/event.rs @@ -36,6 +36,9 @@ pub enum Event { /// The key released. key: Key, + /// The physical key released. + physical_key: key::Physical, + /// The location of the key. location: Location, diff --git a/winit/src/conversion.rs b/winit/src/conversion.rs index 43e1848b4a..04cbb98240 100644 --- a/winit/src/conversion.rs +++ b/winit/src/conversion.rs @@ -262,6 +262,7 @@ pub fn window_event( winit::event::ElementState::Released => { keyboard::Event::KeyReleased { key, + physical_key, modifiers, location, }