mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 23:26:51 +01: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