Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

fix(shortcuts): increase priority of custom shortcuts

Smaug6739c8af29e0f6d5
diff --git a/frontend/app/components/MarkdownEditor/modules/editorState.ts b/frontend/app/components/MarkdownEditor/modules/editorState.ts
index 26c17523..fa5be09e 100644
--- a/frontend/app/components/MarkdownEditor/modules/editorState.ts
+++ b/frontend/app/components/MarkdownEditor/modules/editorState.ts
@@ -30,7 +30,7 @@ export function createEditorState(params: CreateEditorStateParams) {
history(),
drawSelection(),
autocompletion(),
- keymap.of([...defaultKeymap, ...historyKeymap, indentWithTab, ...searchKeymap, ...params.keymaps]),
+ keymap.of([...params.keymaps, ...defaultKeymap, ...historyKeymap, indentWithTab, ...searchKeymap]),
markdown({ base: markdownLanguage }),
markdownLanguage.data.of({
autocomplete: params.snippetSource,