From 6ac1fefd2a503f4fc2eaef3f44dea08584ba6526 Mon Sep 17 00:00:00 2001 From: "hrynevych.romann" Date: Wed, 17 Jan 2024 21:14:53 +0200 Subject: [PATCH] fix(command-dialog-fuse): fix command.md code preview --- apps/www/src/content/docs/components/command.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/www/src/content/docs/components/command.md b/apps/www/src/content/docs/components/command.md index 8c1694c0..184c4e56 100644 --- a/apps/www/src/content/docs/components/command.md +++ b/apps/www/src/content/docs/components/command.md @@ -166,15 +166,15 @@ import { const open = ref(false) -const { Meta_J, Ctrl_J } = useMagicKeys({ +const { Meta_M, Ctrl_M } = useMagicKeys({ passive: false, onEventFired(e) { - if (e.key === 'j' && (e.metaKey || e.ctrlKey)) + if (e.key === 'm' && (e.metaKey || e.ctrlKey)) e.preventDefault() }, }) -watch([Meta_J, Ctrl_J], (v) => { +watch([Meta_M, Ctrl_M], (v) => { if (v[0] || v[1]) handleOpenChange() }) @@ -202,7 +202,7 @@ function customFiltering(val: string[], term: string) { - J + M