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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user