Handle missing Alt keys in X11 (#99)

This commit is contained in:
Gary Guo 2019-11-04 07:15:19 +00:00 committed by Daniel Collin
parent e2acdad0c2
commit bf4eb2d092

View file

@ -936,6 +936,8 @@ impl Window {
XK_Scroll_Lock => Key::ScrollLock, XK_Scroll_Lock => Key::ScrollLock,
XK_Shift_L => Key::LeftShift, XK_Shift_L => Key::LeftShift,
XK_Shift_R => Key::RightShift, XK_Shift_R => Key::RightShift,
XK_Alt_L => Key::LeftAlt,
XK_Alt_R => Key::RightAlt,
XK_Control_L => Key::LeftCtrl, XK_Control_L => Key::LeftCtrl,
XK_Control_R => Key::RightCtrl, XK_Control_R => Key::RightCtrl,
XK_Super_L => Key::LeftSuper, XK_Super_L => Key::LeftSuper,