From bc2472f32b3e184ad370a3d7f321d0177507849b Mon Sep 17 00:00:00 2001 From: Tim Cuthbertson Date: Wed, 22 Apr 2015 11:06:27 +1000 Subject: Fix x11 XK_bracketright keycode --- src/x11/window/events.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/x11/window/events.rs b/src/x11/window/events.rs index cd91dbd..0a8c95f 100644 --- a/src/x11/window/events.rs +++ b/src/x11/window/events.rs @@ -233,7 +233,7 @@ pub fn keycode_to_element(scancode: libc::c_uint) -> Option { ffi::XK_Z => events::VirtualKeyCode::Z, ffi::XK_bracketleft => events::VirtualKeyCode::LBracket, ffi::XK_backslash => events::VirtualKeyCode::Backslash, - ffi::XK_bracketright => events::VirtualKeyCode::LBracket, + ffi::XK_bracketright => events::VirtualKeyCode::RBracket, //ffi::XK_asciicircum => events::VirtualKeyCode::Asciicircum, //ffi::XK_underscore => events::VirtualKeyCode::Underscore, //ffi::XK_grave => events::VirtualKeyCode::Grave, -- cgit v1.2.3