diff --git a/scripts/core/editor3/components/Editor3Component.tsx b/scripts/core/editor3/components/Editor3Component.tsx index d32d4c5a29..56baf62016 100644 --- a/scripts/core/editor3/components/Editor3Component.tsx +++ b/scripts/core/editor3/components/Editor3Component.tsx @@ -290,11 +290,11 @@ export class Editor3Component extends React.Component { keyBindingFn(e) { const {key, shiftKey, ctrlKey, metaKey} = e; const selectionState = this.props.editorState.getSelection(); - const osBasedKeyRule = this.isMacOS() ? metaKey : ctrlKey; + const modifierKey = this.isMacOS() ? metaKey : ctrlKey; if ( key === 'k' - && osBasedKeyRule + && modifierKey && this.props.editorFormat.includes('link') && selectionState.isCollapsed() !== true ) {