[Hotkeys] add single-key shortcuts (#14867)

This commit is contained in:
David authored and GitHub committed 2026-04-28 15:09:12 +01:00
1 parent 1ad6674eec
commit 1e0e859ba8
17 files changed
+111 -204

No files matched your search

-9
View File
@@ -529,15 +529,6 @@ function ReaderUI:registerKeyEvents()
if Device:hasDPad() and Device:useDPadAsActionKeys() then
self.key_events.StartHighlightIndicator = { { { "Up", "Down" } } }
end
if Device:hasScreenKB() or Device:hasSymKey() then
if Device:hasKeyboard() then
self.key_events.ToggleWifi = { { "Shift", "Home" } }
self.key_events.OpenLastDoc = { { "Shift", "Back" } }
else -- Currently exclusively targets Kindle 4.
self.key_events.ToggleWifi = { { "ScreenKB", "Home" } }
self.key_events.OpenLastDoc = { { "ScreenKB", "Back" } }
end
end
end
end