diff options
Diffstat (limited to 'src/x11/window/events.rs')
-rw-r--r-- | src/x11/window/events.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/x11/window/events.rs b/src/x11/window/events.rs index bf91e6a..9072a35 100644 --- a/src/x11/window/events.rs +++ b/src/x11/window/events.rs @@ -157,16 +157,16 @@ pub fn keycode_to_element(scancode: libc::c_uint) -> Option<VirtualKeyCode> { //ffi::XK_R14 => events::R14, //ffi::XK_F35 => events::F35, //ffi::XK_R15 => events::R15, - //ffi::XK_Shift_L => events::Shift_l, - //ffi::XK_Shift_R => events::Shift_r, - //ffi::XK_Control_L => events::Control_l, - //ffi::XK_Control_R => events::Control_r, + ffi::XK_Shift_L => events::LShift, + ffi::XK_Shift_R => events::RShift, + ffi::XK_Control_L => events::LControl, + ffi::XK_Control_R => events::RControl, //ffi::XK_Caps_Lock => events::Caps_lock, //ffi::XK_Shift_Lock => events::Shift_lock, //ffi::XK_Meta_L => events::Meta_l, //ffi::XK_Meta_R => events::Meta_r, - //ffi::XK_Alt_L => events::Alt_l, - //ffi::XK_Alt_R => events::Alt_r, + ffi::XK_Alt_L => events::LAlt, + ffi::XK_Alt_R => events::RAlt, //ffi::XK_Super_L => events::Super_l, //ffi::XK_Super_R => events::Super_r, //ffi::XK_Hyper_L => events::Hyper_l, |