Add C-w to XMonad.Prompt

* Bind C-w to kill the previous word
This commit is contained in:
Trevor Elliott 2008-06-05 22:06:56 +00:00
parent 955a4bd24f
commit aa8275e491

View File

@ -320,6 +320,7 @@ keyPressHandle mask (ks,_)
| ks == xK_Left -> moveWord Prev >> go | ks == xK_Left -> moveWord Prev >> go
| ks == xK_Delete -> killWord Next >> go | ks == xK_Delete -> killWord Next >> go
| ks == xK_BackSpace -> killWord Prev >> go | ks == xK_BackSpace -> killWord Prev >> go
| ks == xK_w -> killWord Prev >> go
| ks == xK_g || ks == xK_c -> quit | ks == xK_g || ks == xK_c -> quit
| otherwise -> eventLoop handle -- unhandled control sequence | otherwise -> eventLoop handle -- unhandled control sequence
| ks == xK_Return = historyPush >> return () | ks == xK_Return = historyPush >> return ()