mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
ReaderBookmark: "bookmark current page" removed from NT kindles (#11907)
Discussed https://github.com/koreader/koreader/issues/11834#issuecomment-2132411929 onwards.
This commit is contained in:
@@ -66,6 +66,7 @@ function ReaderBookmark:onGesture() end
|
||||
function ReaderBookmark:registerKeyEvents()
|
||||
if Device:hasKeyboard() then
|
||||
self.key_events.ShowBookmark = { { "B" } }
|
||||
self.key_events.ToggleBookmark = { { "Shift", "Right" } }
|
||||
elseif Device:hasScreenKB() then
|
||||
self.key_events.ShowBookmark = { { "ScreenKB", "Left" } }
|
||||
self.key_events.ToggleBookmark = { { "ScreenKB", "Right" } }
|
||||
@@ -102,7 +103,7 @@ function ReaderBookmark:addToMainMenu(menu_items)
|
||||
self:onShowBookmark()
|
||||
end,
|
||||
}
|
||||
if not Device:isTouchDevice() then
|
||||
if not Device:isTouchDevice() and not ( Device:hasScreenKB() or Device:hasSymKey() ) then
|
||||
menu_items.toggle_bookmark = {
|
||||
text_func = function()
|
||||
return self:isPageBookmarked() and _("Remove bookmark for current page") or _("Bookmark current page")
|
||||
|
||||
Reference in New Issue
Block a user