Only run "select all on focus" behaviour on desktop platforms

This commit is contained in:
Salman Ahmed 2023-10-30 11:54:19 +03:00
parent c7bc8e6865
commit 39abb8e408
1 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,11 @@ public partial class SettingsSearchTextBox : SeekLimitedSearchTextBox
protected override void OnFocus(FocusEvent e)
{
base.OnFocus(e);
SelectAll();
// on mobile platforms, focus is not held by the search text box, and the select all feature
// will not make sense on it, and might annoy the user when they try to focus manually.
if (HoldFocus)
SelectAll();
}
}
}