From 69086985ff66db9db20c917cce18562193798dc5 Mon Sep 17 00:00:00 2001 From: Petyo Ivanov Date: Wed, 19 Jul 2023 07:55:26 +0300 Subject: [PATCH] fix: link dialog shortcut --- src/system/LinkDialog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/LinkDialog.ts b/src/system/LinkDialog.ts index f8e70033..1cbb84f6 100644 --- a/src/system/LinkDialog.ts +++ b/src/system/LinkDialog.ts @@ -116,7 +116,7 @@ export const [LinkDialogSystem, LinkDialogSystemType] = system( return editor.registerCommand( KEY_MODIFIER_COMMAND, (event) => { - if (event.key === 'k' && IS_APPLE ? event.metaKey : event.ctrlKey) { + if (event.key === 'k' && (IS_APPLE ? event.metaKey : event.ctrlKey)) { r.pub(openLinkEditDialog, true) return true }