mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-16 12:43:53 -07:00
bugfix: removeKeys should remove all keys in the provided list
This commit is contained in:
@@ -105,7 +105,7 @@ additionalKeysP conf keyList =
|
|||||||
-- > `removeKeys` [(mod1Mask .|. shiftMask, n) | n <- [xK_1 .. xK_9]]
|
-- > `removeKeys` [(mod1Mask .|. shiftMask, n) | n <- [xK_1 .. xK_9]]
|
||||||
removeKeys :: XConfig a -> [(ButtonMask, KeySym)] -> XConfig a
|
removeKeys :: XConfig a -> [(ButtonMask, KeySym)] -> XConfig a
|
||||||
removeKeys conf keyList =
|
removeKeys conf keyList =
|
||||||
conf { keys = \cnf -> keys conf cnf `M.difference` M.fromList (zip keyList $ return ()) }
|
conf { keys = \cnf -> keys conf cnf `M.difference` M.fromList (zip keyList $ repeat ()) }
|
||||||
|
|
||||||
-- | Like 'removeKeys', except using short @String@ key descriptors
|
-- | Like 'removeKeys', except using short @String@ key descriptors
|
||||||
-- like @\"M-m\"@ instead of @(modMask, xK_m)@, as described in the
|
-- like @\"M-m\"@ instead of @(modMask, xK_m)@, as described in the
|
||||||
|
Reference in New Issue
Block a user