From 961f6fc7a5f6bbf049ea68d5c6984ff1774c9b65 Mon Sep 17 00:00:00 2001 From: XeroOl Date: Tue, 1 Mar 2022 11:38:15 -0600 Subject: [PATCH] Fix fallback to mod4 in cyclefocus.key If the global `modkey` isn't set, `cyclefocus.key` now correctly falls back to `mod4` --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index d7c5979..793d7e2 100644 --- a/init.lua +++ b/init.lua @@ -1172,7 +1172,7 @@ end -- A helper method to wrap awful.key. function cyclefocus.key(mods, key, startdirection_or_args, args) - mods = mods or {modkey} or {"Mod4"} + mods = mods or {modkey or "Mod4"} key = key or "Tab" if type(startdirection_or_args) == 'number' then awful.util.deprecate('startdirection is not used anymore: pass in mods, key, args', {raw=true})