mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 12:34:55 +02:00
implement auto repeat configuration for key press events, to give more flexibility
This commit is contained in:
@@ -56,8 +56,7 @@ function UIPopupMenu:onMousePress(mousePos, mouseButton)
|
||||
return false
|
||||
end
|
||||
|
||||
function UIPopupMenu:onKeyPress(keyCode, keyboardModifiers, wouldFilter)
|
||||
if wouldFilter then return end
|
||||
function UIPopupMenu:onKeyPress(keyCode, keyboardModifiers)
|
||||
if keyCode == KeyEscape then
|
||||
self:destroy()
|
||||
return true
|
||||
|
Reference in New Issue
Block a user