BookMap & PageBrowser: now usable on Non-Touch devices (#12579)
Some checks failed
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Has been cancelled
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Has been cancelled

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
2025-04-23 04:02:56 +08:00
committed by GitHub
parent 24f1a80ce8
commit 969d47c0bd
9 changed files with 521 additions and 84 deletions

View File

@@ -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()