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:
parent
5694bd8769
commit
a042f33964
|
@ -84,6 +84,9 @@ function keyboardhandler (restore)
|
||||||
elseif key == "Return" then
|
elseif key == "Return" then
|
||||||
selectfn(restore)(capi.client.focus)
|
selectfn(restore)(capi.client.focus)
|
||||||
return false
|
return false
|
||||||
|
elseif key == "Left" or key == "Right" or
|
||||||
|
key == "Up" or key == "Down" then
|
||||||
|
awful.client.focus.bydirection(key:lower())
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue