2020-07-09 21:35:21 -07:00
|
|
|
local common = require("Keyboard Layout Changer.common")
|
|
|
|
local config = require("Keyboard Layout Changer.config").getConfig()
|
|
|
|
|
|
|
|
local function onInitialized()
|
|
|
|
common.log("Changing layout to " .. config.keyboardLayout)
|
2020-07-09 23:39:07 -07:00
|
|
|
common.changeLayout(config.keyboardLayout)
|
2020-07-09 21:35:21 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
event.register("initialized", onInitialized)
|
|
|
|
|
|
|
|
event.register("modConfigReady", function()
|
|
|
|
mwse.mcm.register(require("Keyboard Layout Changer.mcm"))
|
|
|
|
end)
|