example/application: fix alt binding on macOS
This commit is contained in:
parent
b15a40cd14
commit
7e13248be3
1 changed files with 1 additions and 1 deletions
|
|
@ -479,7 +479,7 @@ impl ApplicationHandler for Application {
|
||||||
|
|
||||||
// Dispatch actions only on press.
|
// Dispatch actions only on press.
|
||||||
if event.state.is_pressed() {
|
if event.state.is_pressed() {
|
||||||
let action = if let Key::Character(ch) = event.logical_key.as_ref() {
|
let action = if let Key::Character(ch) = event.key_without_modifiers.as_ref() {
|
||||||
Self::process_key_binding(&ch.to_uppercase(), &mods)
|
Self::process_key_binding(&ch.to_uppercase(), &mods)
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue