mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 14:21:31 +11:00
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).
This commit is contained in:
parent
b6a63ad11f
commit
966c2f2e54
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue