diff options
author | Avi Weinstock <aweinstock314@gmail.com> | 2015-05-18 13:02:23 -0400 |
---|---|---|
committer | Avi Weinstock <aweinstock314@gmail.com> | 2015-05-18 13:02:23 -0400 |
commit | 966c2f2e546b899a1e3e18d16faafd3a84c1cb5c (patch) | |
tree | b0eee58e1c9ad3988c0c3e07249f39c178025f9b /src/api/x11 | |
parent | b6a63ad11f3b7e1c0df60881d33ffee2cdec8ce9 (diff) | |
download | glutin-966c2f2e546b899a1e3e18d16faafd3a84c1cb5c.tar.gz glutin-966c2f2e546b899a1e3e18d16faafd3a84c1cb5c.zip |
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).
Diffstat (limited to 'src/api/x11')
-rw-r--r-- | src/api/x11/window.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs index a5ccf6e..f5f3f2f 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 }; |