mirror of
https://github.com/glanceapp/glance.git
synced 2025-06-20 18:07:59 +02:00
Fix search shortcut #719
This commit is contained in:
parent
429f0be675
commit
d103c81df1
@ -194,7 +194,7 @@ function setupSearchBoxes() {
|
||||
|
||||
document.addEventListener("keydown", (event) => {
|
||||
if (['INPUT', 'TEXTAREA'].includes(document.activeElement.tagName)) return;
|
||||
if (event.key != "s") return;
|
||||
if (event.code != "KeyS") return;
|
||||
|
||||
inputElement.focus();
|
||||
event.preventDefault();
|
||||
|
Loading…
x
Reference in New Issue
Block a user