mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 18:37:44 +02:00
#00 Add text arg to on_input_unselect event
This commit is contained in:
parent
b42d16d999
commit
30f48f1d27
4
druid/extended/input.lua
Normal file → Executable file
4
druid/extended/input.lua
Normal file → Executable file
@ -10,7 +10,7 @@
|
|||||||
--- On input field select callback(self, button_node)
|
--- On input field select callback(self, button_node)
|
||||||
-- @tfield druid_event on_input_select
|
-- @tfield druid_event on_input_select
|
||||||
|
|
||||||
--- On input field unselect callback(self, button_node)
|
--- On input field unselect callback(self, input_text)
|
||||||
-- @tfield druid_event on_input_unselect
|
-- @tfield druid_event on_input_unselect
|
||||||
|
|
||||||
--- On input field text change callback(self, input_text)
|
--- On input field text change callback(self, input_text)
|
||||||
@ -307,7 +307,7 @@ function Input.unselect(self)
|
|||||||
self.is_selected = false
|
self.is_selected = false
|
||||||
|
|
||||||
gui.hide_keyboard()
|
gui.hide_keyboard()
|
||||||
self.on_input_unselect:trigger(self:get_context())
|
self.on_input_unselect:trigger(self:get_context(), self:get_text())
|
||||||
|
|
||||||
self.style.on_unselect(self, self.button.node)
|
self.style.on_unselect(self, self.button.node)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user