[NT] MenuWidget: add keyboard shortcuts for start/end (#12065)

This commit is contained in:
David
2024-06-21 17:07:10 +01:00
committed by GitHub
parent 844d1393e7
commit 041ca074fb

View File

@@ -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