diff --git a/src/game/client/components/menus_browser.cpp b/src/game/client/components/menus_browser.cpp index 4a89988e3..effd2c5f1 100644 --- a/src/game/client/components/menus_browser.cpp +++ b/src/game/client/components/menus_browser.cpp @@ -506,7 +506,7 @@ void CMenus::RenderServerbrowserServerList(CUIRect View) static CLineInput s_FilterInput(g_Config.m_BrFilterString, sizeof(g_Config.m_BrFilterString)); if(Input()->KeyPress(KEY_F) && Input()->ModifierIsPressed()) { - UI()->SetActiveItem(&g_Config.m_BrFilterString); + UI()->SetActiveItem(&s_FilterInput); s_FilterInput.SelectAll(); } if(UI()->DoClearableEditBox(&s_FilterInput, &QuickSearch, 12.0f)) diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index c2a783db1..70b835af7 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -929,7 +929,7 @@ void CMenus::RenderSettingsTee(CUIRect MainView) static CLineInput s_SkinFilterInput(g_Config.m_ClSkinFilterString, sizeof(g_Config.m_ClSkinFilterString)); if(Input()->KeyPress(KEY_F) && Input()->ModifierIsPressed()) { - UI()->SetActiveItem(&g_Config.m_ClSkinFilterString); + UI()->SetActiveItem(&s_SkinFilterInput); s_SkinFilterInput.SelectAll(); } s_SkinFilterInput.SetEmptyText(Localize("Search"));