diff options
author | sean.escriva <sean.escriva@gmail.com> | 2008-11-22 09:47:25 +0100 |
---|---|---|
committer | sean.escriva <sean.escriva@gmail.com> | 2008-11-22 09:47:25 +0100 |
commit | 8d1750f4b6762ddacdf96098a32373e353f52665 (patch) | |
tree | 4f283fd0b9d769d47f837df2148d694376fd558a /XMonad | |
parent | c5e7f0f8e2983ea7a4d76e1e71ed0712c3c0ab1d (diff) | |
download | XMonadContrib-8d1750f4b6762ddacdf96098a32373e353f52665.tar.gz XMonadContrib-8d1750f4b6762ddacdf96098a32373e353f52665.tar.xz XMonadContrib-8d1750f4b6762ddacdf96098a32373e353f52665.zip |
GridSelect.hs: navigate grid with h,j,k,l as well as arrow keys
darcs-hash:20081122084725-29414-872e8669c51462d047d726504e4e34042884ce0b.gz
Diffstat (limited to 'XMonad')
-rw-r--r-- | XMonad/Actions/GridSelect.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/XMonad/Actions/GridSelect.hs b/XMonad/Actions/GridSelect.hs index 31aec5e..76066f2 100644 --- a/XMonad/Actions/GridSelect.hs +++ b/XMonad/Actions/GridSelect.hs @@ -163,10 +163,10 @@ handle :: (KeySym, String) -> StateT TwoDState X (Maybe Window) handle (ks,_) (KeyEvent {ev_event_type = t}) | t == keyPress && ks == xK_Escape = return Nothing - | t == keyPress && ks == xK_Left = diffAndRefresh (-1,0) - | t == keyPress && ks == xK_Right = diffAndRefresh (1,0) - | t == keyPress && ks == xK_Down = diffAndRefresh (0,1) - | t == keyPress && ks == xK_Up = diffAndRefresh (0,-1) + | t == keyPress && ks == xK_Left || ks == xK_h = diffAndRefresh (-1,0) + | t == keyPress && ks == xK_Right || ks == xK_l = diffAndRefresh (1,0) + | t == keyPress && ks == xK_Down || ks == xK_j = diffAndRefresh (0,1) + | t == keyPress && ks == xK_Up || ks == xK_k = diffAndRefresh (0,-1) | t == keyPress && ks == xK_Return = do (TwoDState { td_curpos = pos, td_windowmap = winmap }) <- get return $ fmap (snd . snd) $ findInWindowMap pos winmap |