mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
Fix Ctrl+F not activating search box in browser and tee settings
Closes #6537.
This commit is contained in:
parent
22c6e7ebeb
commit
11cb72be32
|
@ -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))
|
||||
|
|
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue