mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
Changed back on back and backspace. Update backhandler
This commit is contained in:
@@ -32,7 +32,11 @@ end
|
|||||||
-- @tparam string action_id on_input action id
|
-- @tparam string action_id on_input action id
|
||||||
-- @tparam table action on_input action
|
-- @tparam table action on_input action
|
||||||
function M.on_input(self, action_id, action)
|
function M.on_input(self, action_id, action)
|
||||||
if action_id == const.ACTION_BACK and action[const.RELEASED] then
|
if not action[const.RELEASED] then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
if action_id == const.ACTION_BACK or action_id == const.ACTION_BACKSPACE then
|
||||||
self.on_back:trigger(self:get_context(), self.params)
|
self.on_back:trigger(self:get_context(), self.params)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user