mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
change bookmark jumping key binding to Alt-UP/DOWN
This commit is contained in:
parent
b2d1302b85
commit
cfbe9456ba
@ -620,17 +620,17 @@ function CREReader:adjustCreReaderCommands()
|
||||
end
|
||||
end
|
||||
)
|
||||
--self.commands:addGroup(MOD_SHIFT.."up/down",{
|
||||
--Keydef:new(KEY_FW_UP,MOD_SHIFT), Keydef:new(KEY_FW_DOWN,MOD_SHIFT)},
|
||||
--"Jump between bookmarks",
|
||||
--function(unireader,keydef)
|
||||
--if keydef.keycode == KEY_FW_UP then
|
||||
--bm = self:prevBookMarkedPage()
|
||||
--else
|
||||
--bm = self:nextBookMarkedPage()
|
||||
--end
|
||||
--if bm then self:goto(bm.page, nil, "xpointer") end
|
||||
--end)
|
||||
self.commands:addGroup(MOD_ALT.."up/down",{
|
||||
Keydef:new(KEY_FW_UP,MOD_ALT), Keydef:new(KEY_FW_DOWN,MOD_ALT)},
|
||||
"Jump between bookmarks",
|
||||
function(unireader,keydef)
|
||||
if keydef.keycode == KEY_FW_UP then
|
||||
bm = self:prevBookMarkedPage()
|
||||
else
|
||||
bm = self:nextBookMarkedPage()
|
||||
end
|
||||
if bm then self:goto(bm.page, nil, "xpointer") end
|
||||
end)
|
||||
self.commands:add(KEY_BACK, nil, "Back",
|
||||
"go backward in jump history",
|
||||
function(self)
|
||||
|
@ -2490,8 +2490,8 @@ function UniReader:addAllCommands()
|
||||
InfoMessage:inform("Page marked ", 1500, 1, MSG_WARN)
|
||||
end
|
||||
end)
|
||||
self.commands:addGroup(MOD_SHIFT.."up/down",{
|
||||
Keydef:new(KEY_FW_UP,MOD_SHIFT), Keydef:new(KEY_FW_DOWN,MOD_SHIFT)},
|
||||
self.commands:addGroup(MOD_ALT.."up/down",{
|
||||
Keydef:new(KEY_FW_UP,MOD_ALT), Keydef:new(KEY_FW_DOWN,MOD_ALT)},
|
||||
"Jump between bookmarks",
|
||||
function(unireader,keydef)
|
||||
if keydef.keycode == KEY_FW_UP then
|
||||
|
Loading…
Reference in New Issue
Block a user