Introduce is_command_pressed to ModifiersState
This commit is contained in:
parent
3b2ed0d6f0
commit
86fa12229e
2 changed files with 21 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ impl Application for Example {
|
|||
Event::Keyboard(keyboard::Event::KeyPressed {
|
||||
modifiers,
|
||||
key_code,
|
||||
}) if modifiers.control => handle_hotkey(key_code),
|
||||
}) if modifiers.is_command_pressed() => handle_hotkey(key_code),
|
||||
_ => None,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue