Using LuaRT 2.2,0 some events of the List widget seem not triggered, e.g. onClick, onMouseDown, ...
Only keyboard selection and onDoubleClick works.
--! luart-extensions
import ui
local win = ui.Window("List:onClick() sample", "fixed", 320, 240)
local list = ui.List(win, {"Item 1", "Item 2", "Item 3"}, 120, 60)
-- List onDoubleClick() event
--function list:onDoubleClick(item)
function list:onClick()
ui.info("You have double-clicked on "..item.text)
end
-- show the Window
win:show()
while win.visible do
ui.update()
end