Use proper element array

This commit is contained in:
Gabriel Tofvesson 2024-10-12 20:18:32 +02:00
parent d606eccc15
commit f8121a0727

View File

@ -265,7 +265,7 @@ local PAGES = {
local pageState = state:currentPageState({
sortMode = 1,
filter = "",
displayKeyboard = false,
displayKeyboard = Visibility.INVISIBLE,
currentPage = 1
})
@ -544,14 +544,14 @@ local PAGES = {
for _,line in ipairs(keyboardLines.lines) do
local keyLineList = charInputKeyList(line[1], line.backspace)
keyboardWidth = math.max(keyboardWidth, keyLineList:getWidth())
table.insert(keyboardLines, keyLineList)
table.insert(keyboardLines.elements, keyLineList)
end
table.insert(keyboardLines, 1, Text:new{ id = ID_FILTER_DISPLAY, text = "" })
table.insert(keyboardLines.elements, 1, Text:new{ id = ID_FILTER_DISPLAY, text = "" })
local keyboardList = Padding:new{ bgColor = colors.black, left = KEYBOARD_HPAD, right = KEYBOARD_HPAD, element = List:new{
local keyboardList = Padding:new{ bgColor = colors.cyan, left = KEYBOARD_HPAD, right = KEYBOARD_HPAD, element = List:new{
[Orientation:getId()] = Orientation.Vertical,
[Children:getId()] = keyboardLines
[Children:getId()] = keyboardLines.elements
}}
local screenContainer = Container:new{