Entry:onSelect() event
Event fired when the user has pressed the ENTER/RETURN key or when the widget has lost focus.
Return value
The event returns no value.Example
local ui = require "ui"
-- create a window
local win = ui.Window("Window:onSelect() sample", 320, 200)
local label = ui.Label(win, "Name : ", 80, 75)
local entry = ui.Entry(win, "", label.x + label.width + 8, label.y - 4, 100)
entry.tooltip = "Enter your name then press ENTER"
function entry:onSelect()
ui.info("Welcome "..entry.text.." !")
end
win:show()
while win.visible do
ui.update()
end