From b9d8e387548087f39581a5d971653ea6ca0caf2f Mon Sep 17 00:00:00 2001 From: Junyoung Choi Date: Sat, 21 Nov 2020 17:51:51 +0900 Subject: [PATCH] Change replace shortcut key(Alt-F -> Cmd,Ctrl-Alt-F) --- src/components/atoms/CodeEditor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/atoms/CodeEditor.tsx b/src/components/atoms/CodeEditor.tsx index 5ecc1ec6e3..066e4a278d 100644 --- a/src/components/atoms/CodeEditor.tsx +++ b/src/components/atoms/CodeEditor.tsx @@ -7,6 +7,7 @@ import { EditorIndentSizeOptions, EditorKeyMapOptions, } from '../../lib/preferences' +import { osName } from '../../lib/platform' const StyledContainer = styled.div` .CodeMirror { @@ -14,7 +15,6 @@ const StyledContainer = styled.div` } .CodeMirror-dialog button { - // font-size: 70%; background-color: transparent; cursor: pointer; height: 26px; @@ -82,7 +82,7 @@ class CodeEditor extends React.Component { extraKeys: { Enter: 'newlineAndIndentContinueMarkdownList', Tab: 'indentMore', - 'Alt-F': 'findPersistent', + [osName === 'macos' ? 'Cmd-Alt-F' : 'Ctrl-Alt-F']: 'findPersistent', Esc: 'clearSearch', }, })