From 5daade9e00b84947d21856a0299c851e855d5516 Mon Sep 17 00:00:00 2001 From: thecalcc Date: Tue, 24 Oct 2023 10:17:56 +0300 Subject: [PATCH] Change const name --- scripts/core/editor3/components/Editor3Component.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) {