From 7e13248be366a389693a42494174c07365a2c344 Mon Sep 17 00:00:00 2001 From: aloucks Date: Thu, 20 Mar 2025 04:14:33 -0400 Subject: [PATCH] example/application: fix alt binding on macOS --- examples/application.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/application.rs b/examples/application.rs index 1adf25ec..7b478655 100644 --- a/examples/application.rs +++ b/examples/application.rs @@ -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