example/application: fix alt binding on macOS

This commit is contained in:
aloucks 2025-03-20 04:14:33 -04:00 committed by GitHub
parent b15a40cd14
commit 7e13248be3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -479,7 +479,7 @@ impl ApplicationHandler for Application {
// Dispatch actions only on press.
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)
} else {
None