From bf4eb2d092af53e4a70e2d365f7632a868d6c587 Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Mon, 4 Nov 2019 07:15:19 +0000 Subject: [PATCH] Handle missing Alt keys in X11 (#99) --- src/os/unix/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/unix/mod.rs b/src/os/unix/mod.rs index 3b638a6..00f37ad 100644 --- a/src/os/unix/mod.rs +++ b/src/os/unix/mod.rs @@ -936,6 +936,8 @@ impl Window { XK_Scroll_Lock => Key::ScrollLock, XK_Shift_L => Key::LeftShift, XK_Shift_R => Key::RightShift, + XK_Alt_L => Key::LeftAlt, + XK_Alt_R => Key::RightAlt, XK_Control_L => Key::LeftCtrl, XK_Control_R => Key::RightCtrl, XK_Super_L => Key::LeftSuper,