mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Global long press on K4, 'ScreenKB' + 'Press' (#11872)
discussed #11834
This commit is contained in:
@@ -965,7 +965,9 @@ function Menu:init()
|
||||
self.key_events.PrevPage = { { Input.group.PgBack } }
|
||||
end
|
||||
|
||||
if Device:hasDPad() then
|
||||
if Device:hasFiveWay() and not Device:hasKeyboard() then
|
||||
self.key_events.Hold = { { "ScreenKB", "Press" }, event = "Hold" }
|
||||
elseif Device:hasDPad() then
|
||||
-- we won't catch presses to "Right", leave that to MenuItem.
|
||||
self.key_events.FocusRight = nil
|
||||
-- shortcut icon is not needed for touch device
|
||||
|
||||
@@ -515,6 +515,9 @@ function TouchMenu:init()
|
||||
if Device:hasFewKeys() then
|
||||
self.key_events.Back = { { "Left" } }
|
||||
end
|
||||
if Device:hasFiveWay() and not Device:hasKeyboard() then
|
||||
self.key_events.Hold = { { "ScreenKB", "Press" }, event = "Hold" }
|
||||
end
|
||||
self.key_events.NextPage = { { Input.group.PgFwd } }
|
||||
self.key_events.PrevPage = { { Input.group.PgBack } }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user