mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 14:49:07 -04:00
example/application: fix alt binding on macOS
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user