From ee922a3aedd6f82b10570e31ec93c9c2b80f5919 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Thu, 29 Aug 2024 19:56:36 -0400 Subject: [PATCH] #403 fixed section focusing --- pocket/ui/pages/guide_section.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pocket/ui/pages/guide_section.lua b/pocket/ui/pages/guide_section.lua index 6f8a47fb..a317174e 100644 --- a/pocket/ui/pages/guide_section.lua +++ b/pocket/ui/pages/guide_section.lua @@ -76,7 +76,7 @@ return function (data, base_page, title, items, scroll_height) elseif item.type == DOC_TYPE.TEXT then ---@cast item pocket_doc_text TextBox{parent=def_list,text=item.text} - local _ = Div{parent=def_list,height=1} + _end = Div{parent=def_list,height=1,can_focus=true} elseif item.type == DOC_TYPE.LIST then ---@cast item pocket_doc_list @@ -101,7 +101,7 @@ return function (data, base_page, title, items, scroll_height) end end - local _ = Div{parent=def_list,height=1} + _end = Div{parent=def_list,height=1,can_focus=true} end if i % 12 == 0 then util.nop() end