don't fire HotkeyLabel if the label is disabled

develop
Myk Taylor 2023-02-17 14:23:07 -08:00
parent 816371ca69
commit 8b378735fa
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 2 additions and 1 deletions

@ -1472,7 +1472,8 @@ end
function HotkeyLabel:onInput(keys)
if HotkeyLabel.super.onInput(self, keys) then
return true
elseif keys._MOUSE_L_DOWN and self:getMousePos() and self.on_activate then
elseif keys._MOUSE_L_DOWN and self:getMousePos() and self.on_activate
and not is_disabled(self) then
self.on_activate()
return true
end