[hammerspoon] Fix hotkey binding

pull/28/head
Alpha Chen 9 years ago
parent 0c4d64959d
commit 7c8d2a5565

@ -1,13 +1,14 @@
local mash = {"cmd", "alt", "ctrl"} local mash = {"cmd", "alt", "ctrl"}
local mash = {"cmd", "alt", "ctrl", "shift"}
-- Application shortcuts -- Application shortcuts
hs.hotkey.bind({"cmd", "shift"}, "{", function() hs.hotkey.bind({"cmd", "shift"}, "[", function()
current_app():selectMenuItem({"Window", "Select Previous Tab"}) current_app():selectMenuItem({"Window", "Select Previous Tab"})
end) end)
hs.hotkey.bind({"cmd", "shift"}, "}", function() hs.hotkey.bind({"cmd", "shift"}, "]", function()
current_app():selectMenuItem({"Window", "Select Previous Tab"}) current_app():selectMenuItem({"Window", "Select Next Tab"})
end) end)
-- Window management -- Window management
@ -39,7 +40,7 @@ hs.hotkey.bind(mash, "l", function()
end) end)
function current_app() function current_app()
return hs.window.application() return hs.application.frontmostApplication()
end end
function reload_config(files) function reload_config(files)

Loading…
Cancel
Save