mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 04:40:04 -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.
|
// 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
|
||||||
|
|||||||
Reference in New Issue
Block a user