BookMap & PageBrowser: now usable on Non-Touch devices (#12579)

Have them both usable on non-touch devices.
Also:
FrameContainer: fix focus border handling, and draw inner border after the
content (to prevent it from being overridden by the content bgcolor).
This commit is contained in:
Philip Chan authored and GitHub committed 2025-04-22 22:02:56 +02:00
1 parent 24f1a80ce8
commit 969d47c0bd
9 files changed
+521 -84

No files matched your search

@@ -26,7 +26,7 @@ function ReaderThumbnail:init()
-- The BookMap and PageBrowser widgets depend too much on gestures,
-- making them work with not enough keys on Non-Touch would be hard and very limited, so
-- just don't make them available.
-- We will only let BookMap run on useDPadAsActionKeys devices.
-- We will only let them run on useDPadAsActionKeys devices.
return
end
@@ -87,8 +87,6 @@ function ReaderThumbnail:addToMainMenu(menu_items)
self:onShowBookMap(true)
end,
}
-- PageBrowser still needs some work before we can let it run on non-touch devices with useDPadAsActionKeys
if Device:hasDPad() and Device:useDPadAsActionKeys() then return end
menu_items.page_browser = {
text = _("Page browser"),
callback = function()