Changing Search Key to not conflict with browsers

This commit is contained in:
6d486f49
2026-06-04 18:46:42 -04:00
parent a92a3205be
commit deb3565dd7
2 changed files with 2 additions and 12 deletions
+1 -11
View File
@@ -7,15 +7,7 @@
<i class="fa-solid fa-magnifying-glass" style="margin-left: 3px; margin-right: 6px;"></i> Search...
</div>
<div class="searchHotkey">
@if (IsMac)
{
<span><i class="fa-solid fa-command"></i>K</span>
}
else
{
<span>CTRL + K</span>
}
<span>/</span>
</div>
</button>
@@ -51,8 +43,6 @@
private string _userAgent = "";
bool IsMac => _userAgent.Contains("Mac OS");
private void ButtonClicked(EventArgs eventArgs)
{
SearchService.Show();
+1 -1
View File
@@ -44,7 +44,7 @@
[JSInvokable("OnKeyPress")]
public async Task OnKeyPress(string code, bool ctrlKey, bool shiftKey, bool altKey, bool metaKey)
{
if (code.ToLower().Equals("k") && (ctrlKey || shiftKey || altKey || metaKey))
if (code.ToLower().Equals("/"))
{
if (searchService.IsVisible)
{