[hammerspoon] disable attempt at fixing esc in fullscreen safari
change
commit 02fa4572494b8b317db6dc06183e1e8ea4a5235c
author Alpha Chen <alpha.chen@gmail.com>
date
parent 855f4186
diff --git a/.hammerspoon/init.lua b/.hammerspoon/init.lua
index fa4b377c..fe2e212d 100644
--- a/.hammerspoon/init.lua
+++ b/.hammerspoon/init.lua
@@ -13,20 +13,20 @@ end
 --   end
 -- end)
 
-local safari_close_tab = hs.hotkey.new({"cmd"}, "w", function() end, function()
-  if current_app():name() == "Safari" then
-    current_app():selectMenuItem({"File", "Close Tab"})
-  end
-end)
+-- local safari_close_tab = hs.hotkey.new({"cmd"}, "w", function() end, function()
+--   if current_app():name() == "Safari" then
+--     current_app():selectMenuItem({"File", "Close Tab"})
+--   end
+-- end)
 
-local wf = hs.window.filter
-wf.new("Safari"):subscribe(wf.windowFocused, function()
-  -- safari_esc:enable()
-  safari_close_tab:enable()
-end):subscribe(wf.windowUnfocused, function()
-  -- safari_esc:disable()
-  safari_close_tab:disable()
-end)
+-- local wf = hs.window.filter
+-- wf.new("Safari"):subscribe(wf.windowFocused, function()
+--   -- safari_esc:enable()
+--   safari_close_tab:enable()
+-- end):subscribe(wf.windowUnfocused, function()
+--   -- safari_esc:disable()
+--   safari_close_tab:disable()
+-- end)
 
 -- hs.hotkey.bind({"cmd", "shift"}, "[", function()
 --   current_app():selectMenuItem({"Window", "Select Previous Tab"})