diff options
-rw-r--r-- | XMonad/Prompt.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/XMonad/Prompt.hs b/XMonad/Prompt.hs index 5edfcad..6abb4d0 100644 --- a/XMonad/Prompt.hs +++ b/XMonad/Prompt.hs @@ -75,7 +75,7 @@ import Control.Monad.Reader import Control.Monad.State import Control.Applicative ((<$>)) import Data.Char -import Data.Bits ((.&.),complement) +import Data.Bits import Data.Maybe import Data.List import Data.Set (fromList, toList) @@ -335,7 +335,8 @@ eventLoop action = do cleanMask :: KeyMask -> XP KeyMask cleanMask msk = do numlock <- gets numlockMask - return (complement (numlock .|. lockMask) .&. msk) + let highMasks = 1 `shiftL` 12 - 1 + return (complement (numlock .|. lockMask) .&. msk .&. highMasks) -- Main event handler handle :: KeyStroke -> Event -> XP () |