mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 10:27:47 +02:00
Changed back on back and backspace. Update backhandler
This commit is contained in:
parent
b1ccdf9110
commit
e06337fdee
@ -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
|
||||||
@ -41,4 +45,4 @@ function M.on_input(self, action_id, action)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
Loading…
x
Reference in New Issue
Block a user