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:
parent
8b34f99b02
commit
32cdc99e92
@ -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,
|
||||
|
||||
|
@ -262,6 +262,7 @@ pub fn window_event(
|
||||
winit::event::ElementState::Released => {
|
||||
keyboard::Event::KeyReleased {
|
||||
key,
|
||||
modified_key,
|
||||
physical_key,
|
||||
modifiers,
|
||||
location,
|
||||
|
Loading…
Reference in New Issue
Block a user