mirror of
https://github.com/Insality/druid
synced 2025-09-27 18:12:21 +02:00
#00 Add text arg to on_input_unselect event
This commit is contained in:
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)
|
||||
-- @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
|
||||
|
||||
--- On input field text change callback(self, input_text)
|
||||
@@ -307,7 +307,7 @@ function Input.unselect(self)
|
||||
self.is_selected = false
|
||||
|
||||
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)
|
||||
end
|
||||
|
Reference in New Issue
Block a user