To-do list changes

This commit is contained in:
Insality
2020-02-25 00:26:53 +03:00
parent 09dbd66484
commit 5ea102d0aa
2 changed files with 3 additions and 5 deletions

View File

@@ -176,14 +176,12 @@ function M.on_input(self, action_id, action)
return false
end
local is_key_trigger = (action_id == self.key_trigger)
if not helper.is_enabled(self.node) then
return false
end
local is_pick = true
local is_key_trigger = (action_id == self.key_trigger)
if not is_key_trigger then
is_pick = gui.pick_node(self.node, action.x, action.y)
if self.click_zone then