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)