diff --git a/core/src/keyboard/event.rs b/core/src/keyboard/event.rs index 0c97d26fd5..6e483f5be9 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 key released with all keyboard modifiers applied, except Ctrl. + modified_key: Key, + /// The physical key released. physical_key: key::Physical, diff --git a/winit/src/conversion.rs b/winit/src/conversion.rs index 04cbb98240..5d0f834817 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, + modified_key, physical_key, modifiers, location,