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

Add jump to context WIP

This commit is contained in:
Coteh
2022-01-16 03:04:56 -05:00
parent 705f2990e9
commit 25c901e013
4 changed files with 69 additions and 11 deletions

View File

@@ -29,7 +29,7 @@ import { useSearchFilter } from "@/composables/search";
import { ref, nextTick, onMounted, onUnmounted } from "vue";
const input = ref<HTMLInputElement>();
const { searchFilter, showSearch } = useSearchFilter();
const { searchFilter, showSearch, resetSearch } = useSearchFilter();
onMounted(() => {
hotkeys("command+f, ctrl+f", (event, handler) => {
@@ -46,11 +46,6 @@ onUnmounted(() => {
hotkeys.unbind("command+f, ctrl+f");
hotkeys.unbind("esc");
});
function resetSearch() {
searchFilter.value = "";
showSearch.value = false;
}
</script>
<style lang="scss" scoped>