Skip to content

Commit

Permalink
Replace defaultKeymap with standardKeymap
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperengstrom committed Nov 25, 2024
1 parent 69d63ea commit 9b69712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/supersearch/src/lib/components/SuperSearch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import submitFormOnEnterKey from '$lib/extensions/submitFormOnEnterKey.js';
import preventNewLine from '$lib/extensions/preventNewLine.js';
import { qualifierPlugin } from '$lib/extensions/qualifierPlugin.js';
import { defaultKeymap } from '@codemirror/commands';
import { standardKeymap } from '@codemirror/commands';
interface Props {
name: string;
Expand All @@ -26,7 +26,7 @@
let prevPlaceholder = placeholder;
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] : []),
Expand Down

0 comments on commit 9b69712

Please sign in to comment.