From d4bed68dbe186bf6b7c297cc7751f75440d14137 Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Mon, 17 Nov 2014 11:35:15 +1000 Subject: Add ctrl, shift, alt events for X11. --- src/x11/window/events.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/x11') 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 { //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, -- cgit v1.2.3