From 0e7f1d294603d882ab0366d1c6597fee38ed056a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 7 Jan 2016 00:56:53 -0500 Subject: [PATCH] hs: hotkey checks on disableBinds --- hammerspoon/modules/apps.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hammerspoon/modules/apps.lua b/hammerspoon/modules/apps.lua index 2dbb510c..861c779b 100644 --- a/hammerspoon/modules/apps.lua +++ b/hammerspoon/modules/apps.lua @@ -77,7 +77,11 @@ App.new = function(name) end self.disableBinds = function(self) - hs.fnutils.each(self.bindings, function(b) b.key:disable() end) + hs.fnutils.each(self.bindings, function(b) + if b and b.key then + b.key:disable() + end + end) end self.clearBinds = function(self)