Skip to content

Commit

Permalink
Change const name
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc committed Oct 24, 2023
1 parent 5b86552 commit 5daade9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/core/editor3/components/Editor3Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,11 @@ export class Editor3Component extends React.Component<IProps, IState> {
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
) {
Expand Down

0 comments on commit 5daade9

Please sign in to comment.