Skip to content

Commit b9d8e38

Browse files
committed
Change replace shortcut key(Alt-F -> Cmd,Ctrl-Alt-F)
1 parent df6464e commit b9d8e38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/atoms/CodeEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ import {
77
EditorIndentSizeOptions,
88
EditorKeyMapOptions,
99
} from '../../lib/preferences'
10+
import { osName } from '../../lib/platform'
1011

1112
const StyledContainer = styled.div`
1213
.CodeMirror {
1314
font-family: inherit;
1415
}
1516
1617
.CodeMirror-dialog button {
17-
// font-size: 70%;
1818
background-color: transparent;
1919
cursor: pointer;
2020
height: 26px;
@@ -82,7 +82,7 @@ class CodeEditor extends React.Component<CodeEditorProps> {
8282
extraKeys: {
8383
Enter: 'newlineAndIndentContinueMarkdownList',
8484
Tab: 'indentMore',
85-
'Alt-F': 'findPersistent',
85+
[osName === 'macos' ? 'Cmd-Alt-F' : 'Ctrl-Alt-F']: 'findPersistent',
8686
Esc: 'clearSearch',
8787
},
8888
})

0 commit comments

Comments
 (0)