From fa1544d7fed1dcd2cc94d6ced9846a7dd70be81d Mon Sep 17 00:00:00 2001 From: Igor Velkov <325961+iav@users.noreply.github.com> Date: Mon, 10 Aug 2026 14:43:53 +0300 Subject: [PATCH] ReaderToc: let the focused node draw its cursor (#15820) --- frontend/apps/reader/modules/readertoc.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/apps/reader/modules/readertoc.lua b/frontend/apps/reader/modules/readertoc.lua index 6467bb5c3..001d9b186 100644 --- a/frontend/apps/reader/modules/readertoc.lua +++ b/frontend/apps/reader/modules/readertoc.lua @@ -884,6 +884,7 @@ function ReaderToc:onShowToc() -- *2/5 to account for Menu top title and bottom icons, and add some space between consecutive icons local icon_size = math.floor(Screen:getHeight() / items_per_page * 2/5) local button_width = icon_size * 2 + -- no_focus: expand/collapse is on the left/right keys, so the buttons don't need to take focus. self.expand_button = Button:new{ icon = "control.expand", icon_rotation_angle = BD.mirroredUILayout() and 180 or 0, @@ -891,6 +892,7 @@ function ReaderToc:onShowToc() icon_width = icon_size, icon_height = icon_size, bordersize = 0, + no_focus = true, show_parent = self, callback = function(index) self:expandToc(index) end, onTapSelectButton = function() end, -- pass through taps to onMenuSelect @@ -902,6 +904,7 @@ function ReaderToc:onShowToc() icon_width = icon_size, icon_height = icon_size, bordersize = 0, + no_focus = true, show_parent = self, callback = function(index) self:collapseToc(index) end, onTapSelectButton = function() end, -- pass through taps to onMenuSelect