1
1
mirror of https://github.com/iced-rs/iced.git synced 2024-11-20 12:17:38 +03:00

Add modified_key to keyboard::Event::KeyReleased

This commit is contained in:
Héctor Ramón Jiménez 2024-10-02 16:53:10 +02:00
parent 8b34f99b02
commit 32cdc99e92
No known key found for this signature in database
GPG Key ID: 7CC46565708259A7
2 changed files with 4 additions and 0 deletions

View File

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

View File

@ -262,6 +262,7 @@ pub fn window_event(
winit::event::ElementState::Released => {
keyboard::Event::KeyReleased {
key,
modified_key,
physical_key,
modifiers,
location,