hs: hotkey checks on disableBinds

This commit is contained in:
Henrik Lissner 2016-01-07 00:56:53 -05:00
parent cb15dabd04
commit 0e7f1d2946

View file

@ -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)