List:onDoubleClick(ListItem) event
Event fired when the user has double-clicked on an item in the List.
Return value
The event returns no value.Example
local ui = require "ui"
local win = ui.Window("List:onDoubleClick() sample", "fixed", 320, 240)
local list = ui.List(win, {"Item 1", "Item 2", "Item 3"}, 120, 60)
-- List onDoubleClick() event
function list:onDoubleClick(item)
ui.info("You have double-clicked on "..item.text)
end
-- show the Window
win:show()
while win.visible do
ui.update()
end