Skip to content

Commit

Permalink
fix: link dialog shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
petyosi committed Jul 19, 2023
1 parent 01d0f2a commit 6908698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system/LinkDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6908698

Please sign in to comment.