mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[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>.
This commit is contained in:
@@ -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" }
|
||||
|
||||
Reference in New Issue
Block a user