Skip to content

Commit

Permalink
cyclefocus.key: handle Tab explicitly (#15)
Browse files Browse the repository at this point in the history
Might fix #13.
  • Loading branch information
blueyed authored Apr 2, 2017
1 parent 006f68f commit 69fd568
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,13 @@ function cyclefocus.key(mods, key, startdirection, _args)
local key = key or "Tab"
local startdirection = startdirection or 1
local args = awful.util.table.clone(_args) or {}
if not args.keys then
if key == "Tab" then
args.keys = {"Tab", "ISO_Left_Tab"}
else
args.keys = {key}
end
end
args.keys = args.keys or {key}
args.modifier = args.modifier or mods[0]

Expand Down

0 comments on commit 69fd568

Please sign in to comment.