From 966c2f2e546b899a1e3e18d16faafd3a84c1cb5c Mon Sep 17 00:00:00 2001 From: Avi Weinstock Date: Mon, 18 May 2015 13:02:23 -0400 Subject: [PATCH] fixup! Fix handling of numpad keys w.r.t. numlock (derived from fix mentioned at http://www.kaffe.org/pipermail/kaffe/2000-April/175201.html). --- src/api/x11/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs index a5ccf6ed..f5f3f2fe 100644 --- a/src/api/x11/window.rs +++ b/src/api/x11/window.rs @@ -202,7 +202,7 @@ impl<'a> Iterator for PollEventsIterator<'a> { (self.window.x.display.xlib.XKeycodeToKeysym)(self.window.x.display.display, event.keycode as ffi::KeyCode, 0) }; - if (ffi::XK_KP_Space as u64 <= keysym) || (keysym <= ffi::XK_KP_9 as u64) { + if (ffi::XK_KP_Space as u64 <= keysym) && (keysym <= ffi::XK_KP_9 as u64) { keysym = kp_keysym };