mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[NT] MenuWidget: add keyboard shortcuts for start/end (#12065)
This commit is contained in:
@@ -969,6 +969,15 @@ function Menu:init()
|
||||
end
|
||||
self.key_events.NextPage = { { Input.group.PgFwd } }
|
||||
self.key_events.PrevPage = { { Input.group.PgBack } }
|
||||
if Device:hasKeyboard() then
|
||||
self.key_events.FirstPage = { { "Shift", { "LPgBack", "RPgBack" } } }
|
||||
self.key_events.LastPage = { { "Shift", { "LPgFwd", "RPgFwd" } } }
|
||||
self.key_events.ShowGotoDialog = { { "Shift", "Down" } }
|
||||
elseif Device:hasScreenKB() then
|
||||
self.key_events.FirstPage = { { "ScreenKB", { "LPgBack", "RPgBack" } } }
|
||||
self.key_events.LastPage = { { "ScreenKB", { "LPgFwd", "RPgFwd" } } }
|
||||
self.key_events.ShowGotoDialog = { { "ScreenKB", "Down" } }
|
||||
end
|
||||
end
|
||||
|
||||
if Device:hasDPad() then
|
||||
|
||||
Reference in New Issue
Block a user