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 26, 2024
1 parent bf5497d commit ed0fb5a
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 @@ -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;
Expand Down Expand Up @@ -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] : []),
Expand Down

0 comments on commit ed0fb5a

Please sign in to comment.