mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user