diff --git a/assets/components/Search.vue b/assets/components/Search.vue index ff24dce1..09754ab1 100644 --- a/assets/components/Search.vue +++ b/assets/components/Search.vue @@ -32,5 +32,18 @@ onKeyStroke("f", (e) => { } }); +onMounted(() => { + onKeyStroke( + "f", + (e) => { + if (e.ctrlKey || e.metaKey) { + e.stopPropagation(); + resetSearch(); + } + }, + { target: input.value }, + ); +}); + onUnmounted(() => resetSearch());