mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
fix some keyboard issues, chat tab, fix loadScript exception
This commit is contained in:
@@ -23,7 +23,7 @@ local consoleBuffer
|
||||
local consoleTabBar
|
||||
local defaultChannelTab
|
||||
local serverLogTab
|
||||
local current
|
||||
local currentTab
|
||||
|
||||
-- public functions
|
||||
function Console.create()
|
||||
@@ -33,6 +33,9 @@ function Console.create()
|
||||
consoleTabBar:setContentWidget(consoleBuffer)
|
||||
defaultChannelTab = consoleTabBar:addTab('Default')
|
||||
serverLogTab = consoleTabBar:addTab('Server Log')
|
||||
|
||||
Hotkeys.bind('Tab', function() consoleTabBar:selectNextTab() end, consolePanel)
|
||||
Hotkeys.bind('Shift+Tab', function() consoleTabBar:selectPrevTab() end, consolePanel)
|
||||
end
|
||||
|
||||
function Console.destroy()
|
||||
|
@@ -69,4 +69,5 @@ Panel
|
||||
margin-right: 6
|
||||
margin-left: 6
|
||||
margin-bottom: 6
|
||||
always-active: true
|
||||
always-active: true
|
||||
focusable: false
|
Reference in New Issue
Block a user