mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
apply key repeat from menus
This commit is contained in:
@@ -317,7 +317,7 @@ function SelectMenu:choose(ypos, height)
|
||||
|
||||
local ev = input.saveWaitForEvent()
|
||||
ev.code = adjustKeyEvents(ev)
|
||||
if ev.type == EV_KEY and ev.value == EVENT_VALUE_KEY_PRESS then
|
||||
if ev.type == EV_KEY and ev.value ~= EVENT_VALUE_KEY_RELEASE then
|
||||
keydef = Keydef:new(ev.code, getKeyModifier())
|
||||
debug("key pressed: "..tostring(keydef))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user