mirror of
https://github.com/edubart/otclient.git
synced 2025-12-01 07:36:49 +01:00
implement auto repeat configuration for key press events, to give more flexibility
This commit is contained in:
@@ -6,8 +6,7 @@ function UIWindow.create()
|
||||
return window
|
||||
end
|
||||
|
||||
function UIWindow:onKeyPress(keyCode, keyboardModifiers, wouldFilter)
|
||||
if wouldFilter then return end
|
||||
function UIWindow:onKeyPress(keyCode, keyboardModifiers)
|
||||
if keyboardModifiers == KeyboardNoModifier then
|
||||
if keyCode == KeyEnter then
|
||||
signalcall(self.onEnter, self)
|
||||
|
||||
Reference in New Issue
Block a user