[Menu] Remove title bar buttons from layout on hasSymKey or hasScreenKB devices (#12328)

This commit is contained in:
David
2024-08-13 07:43:40 +01:00
committed by GitHub
parent 4264d915b1
commit d706a129fa

View File

@@ -1127,6 +1127,10 @@ end
-- merge TitleBar layout into self FocusManager layout
function Menu:mergeTitleBarIntoLayout()
if Device:hasSymKey() or Device:hasScreenKB() then
-- Title bar items can be accessed through key mappings on kindle
return
end
local menu_item_layout_start_row = 1
local titlebars = {self.title_bar, self.outer_title_bar}
for _, v in ipairs(titlebars) do