[xmonad] Re: darcs patch: Make prompt keybindings work when numLock or capsLock are active

Justin Bogner mail at justinbogner.com
Sun Jun 8 18:37:41 EDT 2008


Looking at it further, using testBit is actually much uglier. I'd have 
to do something like
 > lg x = log x / log 2
 > testBit mask (lg controlMask)
since controlMask isn't defined as "which bit is set", but as an actual 
bitmask. The attached patch is semantically equivalent to my previous 
one but would still work properly if controlMask was more than a single 
bit (which it isn't, of course, but the logic seems cleaner this way)
_____
Justin Bogner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: promptmask.patch
Type: text/x-diff
Size: 20087 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/xmonad/attachments/20080608/b5256de2/promptmask-0001.bin


More information about the xmonad mailing list