aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/x11/events.rs48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/x11/events.rs b/src/x11/events.rs
index 8b78136..78d310c 100644
--- a/src/x11/events.rs
+++ b/src/x11/events.rs
@@ -5,14 +5,14 @@ use Element;
pub fn keycode_to_element(scancode: libc::c_uint) -> Option<Element> {
Some(match scancode {
//ffi::XK_BackSpace => events::Backspace,
- //ffi::XK_Tab => events::Tab,
+ ffi::XK_Tab => events::Tab,
//ffi::XK_Linefeed => events::Linefeed,
//ffi::XK_Clear => events::Clear,
- //ffi::XK_Return => events::Return,
+ ffi::XK_Return => events::Return,
//ffi::XK_Pause => events::Pause,
//ffi::XK_Scroll_Lock => events::Scroll_lock,
//ffi::XK_Sys_Req => events::Sys_req,
- //ffi::XK_Escape => events::Escape,
+ ffi::XK_Escape => events::Escape,
//ffi::XK_Delete => events::Delete,
//ffi::XK_Multi_key => events::Multi_key,
//ffi::XK_Kanji => events::Kanji,
@@ -33,10 +33,10 @@ pub fn keycode_to_element(scancode: libc::c_uint) -> Option<Element> {
//ffi::XK_Eisu_Shift => events::Eisu_shift,
//ffi::XK_Eisu_toggle => events::Eisu_toggle,
//ffi::XK_Home => events::Home,
- //ffi::XK_Left => events::Left,
- //ffi::XK_Up => events::Up,
- //ffi::XK_Right => events::Right,
- //ffi::XK_Down => events::Down,
+ ffi::XK_Left => events::Left,
+ ffi::XK_Up => events::Up,
+ ffi::XK_Right => events::Right,
+ ffi::XK_Down => events::Down,
//ffi::XK_Prior => events::Prior,
//ffi::XK_Page_Up => events::Page_up,
//ffi::XK_Next => events::Next,
@@ -49,7 +49,7 @@ pub fn keycode_to_element(scancode: libc::c_uint) -> Option<Element> {
//ffi::XK_Select => events::Select,
//ffi::XK_Print => events::Print,
//ffi::XK_Execute => events::Execute,
- //ffi::XK_Insert => events::Insert,
+ ffi::XK_Insert => events::Insert,
//ffi::XK_Undo => events::Undo,
//ffi::XK_Redo => events::Redo,
//ffi::XK_Menu => events::Menu,
@@ -97,25 +97,25 @@ pub fn keycode_to_element(scancode: libc::c_uint) -> Option<Element> {
//ffi::XK_KP_7 => events::Kp_7,
//ffi::XK_KP_8 => events::Kp_8,
//ffi::XK_KP_9 => events::Kp_9,
- //ffi::XK_F1 => events::F1,
- //ffi::XK_F2 => events::F2,
- //ffi::XK_F3 => events::F3,
- //ffi::XK_F4 => events::F4,
- //ffi::XK_F5 => events::F5,
- //ffi::XK_F6 => events::F6,
- //ffi::XK_F7 => events::F7,
- //ffi::XK_F8 => events::F8,
- //ffi::XK_F9 => events::F9,
- //ffi::XK_F10 => events::F10,
- //ffi::XK_F11 => events::F11,
+ ffi::XK_F1 => events::F1,
+ ffi::XK_F2 => events::F2,
+ ffi::XK_F3 => events::F3,
+ ffi::XK_F4 => events::F4,
+ ffi::XK_F5 => events::F5,
+ ffi::XK_F6 => events::F6,
+ ffi::XK_F7 => events::F7,
+ ffi::XK_F8 => events::F8,
+ ffi::XK_F9 => events::F9,
+ ffi::XK_F10 => events::F10,
+ ffi::XK_F11 => events::F11,
//ffi::XK_L1 => events::L1,
- //ffi::XK_F12 => events::F12,
+ ffi::XK_F12 => events::F12,
//ffi::XK_L2 => events::L2,
- //ffi::XK_F13 => events::F13,
+ ffi::XK_F13 => events::F13,
//ffi::XK_L3 => events::L3,
- //ffi::XK_F14 => events::F14,
+ ffi::XK_F14 => events::F14,
//ffi::XK_L4 => events::L4,
- //ffi::XK_F15 => events::F15,
+ ffi::XK_F15 => events::F15,
//ffi::XK_L5 => events::L5,
//ffi::XK_F16 => events::F16,
//ffi::XK_L6 => events::L6,
@@ -171,7 +171,7 @@ pub fn keycode_to_element(scancode: libc::c_uint) -> Option<Element> {
//ffi::XK_Super_R => events::Super_r,
//ffi::XK_Hyper_L => events::Hyper_l,
//ffi::XK_Hyper_R => events::Hyper_r,
- //ffi::XK_space => events::Space,
+ ffi::XK_space => events::Space,
//ffi::XK_exclam => events::Exclam,
//ffi::XK_quotedbl => events::Quotedbl,
//ffi::XK_numbersign => events::Numbersign,