mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
walk and key event system rework with some regressions
This commit is contained in:
@@ -6,7 +6,8 @@ function UIWindow.create()
|
||||
return window
|
||||
end
|
||||
|
||||
function UIWindow:onKeyPress(keyCode, keyText, keyboardModifiers)
|
||||
function UIWindow:onKeyPress(keyCode, keyboardModifiers, wouldFilter)
|
||||
if wouldFilter then return end
|
||||
if keyboardModifiers == KeyboardNoModifier then
|
||||
if keyCode == KeyReturn or keyCode == KeyEnter then
|
||||
signalcall(self.onEnter, self)
|
||||
|
Reference in New Issue
Block a user