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

@@ -121,8 +121,10 @@ function ReaderHandMade:onToggleHandmadeFlows()
end
function ReaderHandMade:addToMainMenu(menu_items)
-- As it's currently impossible to create custom hidden flows on non-touch, and really impractical to create a custom toc, it's better hide these features completely for now.
if not Device:isTouchDevice() then
if not Device:isTouchDevice() and not Device:useDPadAsActionKeys() then
-- As it's currently impossible to create custom hidden flows on non-touch devices without useDPadAsActionKeys,
-- (technically speaking, without a 'hold' or 'long-press' event) and really impractical to create a custom toc,
-- it's better hide these features completely for now.
return
end
menu_items.handmade_toc = {