Add ctrl-F to highlight search; fix flea enter during filter not working

This commit is contained in:
Tyfon
2024-09-04 03:29:26 -07:00
parent 6e96461ad2
commit f62d957059
4 changed files with 103 additions and 7 deletions

20
SearchKeyListener.cs Normal file
View File

@@ -0,0 +1,20 @@
using TMPro;
using UnityEngine;
namespace UIFixes;
public class SearchKeyListener : MonoBehaviour
{
public void Update()
{
if (Settings.SearchKeyBind.Value.IsDown())
{
TMP_InputField searchField = GetComponent<TMP_InputField>();
if (searchField != null)
{
searchField.ActivateInputField();
searchField.Select();
}
}
}
}