common/zo_options/gamepad/zo_options_gamepad.lua:17 -- OPTIONS_MENU_FRAGMENT:RegisterCallback("StateChange", function(oldState, newState)
if newState == SCENE_SHOWING then
self:PerformDeferredInitialization()
self:RefreshOptionsList()
self:SetCurrentList(self.optionsList)
KEYBIND_STRIP:AddKeybindButtonGroup(self.rootKeybindDescriptor)
elseif newState == SCENE_HIDDEN then
self:DeactivateList()
self:SaveCachedClientSettings()
KEYBIND_STRIP:RemoveKeybindButtonGroup(self.rootKeybindDescriptor)
KEYBIND_STRIP:RemoveKeybindButtonGroup(self.checkboxDescriptor)
end
end)