revelation: Add arrow key behavior

As promised by the documentation comment for the keyboardhandler.

Signed-off-by: Espen Wiborg <espenhw@grumblesmurf.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Espen Wiborg 2008-11-13 19:55:11 +01:00 committed by Julien Danjou
parent 5694bd8769
commit a042f33964
1 changed files with 3 additions and 0 deletions

View File

@ -84,6 +84,9 @@ function keyboardhandler (restore)
elseif key == "Return" then
selectfn(restore)(capi.client.focus)
return false
elseif key == "Left" or key == "Right" or
key == "Up" or key == "Down" then
awful.client.focus.bydirection(key:lower())
end
return true
end