mirror of
https://github.com/xmonad/xmonad.git
synced 2025-05-19 08:30:21 -07:00
Clear numlock bit
This commit is contained in:
parent
2a5be03dd1
commit
70a87063d1
2
Main.hs
2
Main.hs
@ -128,7 +128,7 @@ handle (KeyEvent {ev_event_type = t, ev_state = m, ev_keycode = code})
|
||||
| t == keyPress
|
||||
= withDisplay $ \dpy -> do
|
||||
s <- io $ keycodeToKeysym dpy code 0
|
||||
whenJust (M.lookup (m,s) keys) id
|
||||
whenJust (M.lookup (complement numlockMask .&. m,s) keys) id
|
||||
|
||||
-- manage a new window
|
||||
handle (MapRequestEvent {ev_window = w}) = withDisplay $ \dpy -> do
|
||||
|
Loading…
x
Reference in New Issue
Block a user