Back to Home

ESO Lua File v100029

ingame/keybindings/keybindings_manager.lua

[◄ back to folders ]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
local KeybindingsManager = ZO_Object:Subclass()
function KeybindingsManager:New()
    local obj = ZO_Object.New(self)
    obj:Initialize()
    return obj
end
function KeybindingsManager:Initialize()
    local function OnAddOnLoaded(event, name)
        if name == "ZO_Ingame" then
            PushActionLayerByName(GetString(SI_KEYBINDINGS_LAYER_GENERAL))
            EVENT_MANAGER:UnregisterForEvent("KeybindingsManager", EVENT_ADD_ON_LOADED)
        end
    end
    EVENT_MANAGER:RegisterForEvent("KeybindingsManager", EVENT_ADD_ON_LOADED, OnAddOnLoaded)
end
KEYBINDINGS_MANAGER = KeybindingsManager:New()