[UX] Add left to close to ConfigDialog for hasFewKeys (#6318)

Follow-up to <https://github.com/koreader/koreader/pull/6195>.

Part of <https://github.com/koreader/koreader/issues/4029>.
reviewable/pr6320/r1
Frans de Jonge 4 years ago committed by GitHub
parent 060ee98048
commit 7a37accdcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -824,7 +824,8 @@ function ConfigDialog:init()
end
if Device:hasKeys() then
-- set up keyboard events
self.key_events.Close = { {"Back"}, doc = "close config menu" }
local close_keys = Device:hasFewKeys() and { "Back", "Left" } or "Back"
self.key_events.Close = { { close_keys }, doc = "close config menu" }
end
if Device:hasDPad() then
self.key_events.Select = { {"Press"}, doc = "select current menu item" }

Loading…
Cancel
Save