ingame/crafting/keyboard/enchanting_keyboard.lua:29 -- ENCHANTING_SCENE:RegisterCallback("StateChange", function(oldState, newState)
if newState == SCENE_SHOWING then
KEYBIND_STRIP:AddKeybindButtonGroup(self.keybindStripDescriptor)
if self.enchantingMode then
local oldEnchantMode = self.enchantingMode
self.enchantingMode = nil
self:SetEnchantingMode(oldEnchantMode)
else
ZO_MenuBar_SelectDescriptor(self.modeBar, ENCHANTING_MODE_CREATION)
end
elseif newState == SCENE_HIDDEN then
ZO_InventorySlot_RemoveMouseOverKeybinds()
KEYBIND_STRIP:RemoveKeybindButtonGroup(self.keybindStripDescriptor)
self.inventory:HandleDirtyEvent()
CRAFTING_RESULTS:SetCraftingTooltip(nil)
end
end)