From e99e6ebd499b0bc5bf13c2dabaf5bc5a5019e585 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Tue, 20 Sep 2022 14:30:54 -0700 Subject: [PATCH] Fixes bubble for search and #1886 --- assets/layouts/default.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/layouts/default.vue b/assets/layouts/default.vue index 4048cfa5..222ae679 100644 --- a/assets/layouts/default.vue +++ b/assets/layouts/default.vue @@ -50,7 +50,12 @@ import FuzzySearchModal from "@/components/FuzzySearchModal.vue"; const collapseNav = ref(false); const { oruga } = useProgrammatic(); const { authorizationNeeded } = config; -const { Meta_K, Ctrl_K } = useMagicKeys(); +const { Meta_K, Ctrl_K } = useMagicKeys({ + passive: false, + onEventFired(e) { + if ((e.ctrlKey || e.metaKey) && e.key === "k" && e.type === "keydown") e.preventDefault(); + }, +}); const containerStore = useContainerStore(); const { activeContainers, visibleContainers } = storeToRefs(containerStore);