1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-31 01:57:21 +01:00

feat: when doing modifier+f again in search, hides search and show browser search (#2526)

This commit is contained in:
Amir Raminfar
2023-11-22 05:48:03 -08:00
committed by GitHub
parent 7ff26b822f
commit 318b07d1a9

View File

@@ -32,5 +32,18 @@ onKeyStroke("f", (e) => {
}
});
onMounted(() => {
onKeyStroke(
"f",
(e) => {
if (e.ctrlKey || e.metaKey) {
e.stopPropagation();
resetSearch();
}
},
{ target: input.value },
);
});
onUnmounted(() => resetSearch());
</script>