From ed0fb5ae277f2d9ced29821922f5e6b648dc29a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20Engstr=C3=B6m?= Date: Mon, 25 Nov 2024 13:34:13 +0100 Subject: [PATCH] Replace defaultKeymap with standardKeymap --- packages/supersearch/src/lib/components/SuperSearch.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/supersearch/src/lib/components/SuperSearch.svelte b/packages/supersearch/src/lib/components/SuperSearch.svelte index 9c176e9e5..f8ff9b23f 100644 --- a/packages/supersearch/src/lib/components/SuperSearch.svelte +++ b/packages/supersearch/src/lib/components/SuperSearch.svelte @@ -14,7 +14,7 @@ ResultItem } from '$lib/types/superSearch.js'; import { qualifierPlugin } from '$lib/extensions/qualifierPlugin.js'; - import { defaultKeymap } from '@codemirror/commands'; + import { standardKeymap } from '@codemirror/commands'; interface Props { name: string; @@ -63,7 +63,7 @@ }); const extensions = [ - keymap.of(defaultKeymap), // Needed for atomic ranges to work. Maybe we can use a subset? + keymap.of(standardKeymap), // Needed for atomic ranges to work. Maybe we can use a subset? submitFormOnEnterKey(form), preventNewLine({ replaceWithSpace: true }), ...(language ? [language] : []),