few more places in which repeat key is useful

This commit is contained in:
Dobrica Pavlinusic
2012-04-27 23:35:33 +02:00
parent 8db0aef635
commit c688e6e20c
3 changed files with 3 additions and 3 deletions

View File

@@ -185,7 +185,7 @@ function InputBox:input(ypos, height, title, d_text, is_hint)
while true do
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))