mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
implement auto repeat configuration for key press events, to give more flexibility
This commit is contained in:
@@ -13,6 +13,9 @@ function ModuleManager.init()
|
||||
ModuleManager.updateModuleInfo(focusedChild:getText())
|
||||
end })
|
||||
|
||||
Keyboard.bindKeyPress('Up', function() moduleList:focusPreviousChild(KeyboardFocusReason) end, moduleManagerWindow)
|
||||
Keyboard.bindKeyPress('Down', function() moduleList:focusNextChild(KeyboardFocusReason) end, moduleManagerWindow)
|
||||
|
||||
moduleManagerButton = TopMenu.addButton('moduleManagerButton', 'Module manager', 'modulemanager.png', ModuleManager.toggle)
|
||||
|
||||
addEvent(ModuleManager.listModules)
|
||||
|
Reference in New Issue
Block a user