Skip to content

Commit

Permalink
Change replace shortcut key(Alt-F -> Cmd,Ctrl-Alt-F)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rokt33r committed Nov 21, 2020
1 parent df6464e commit b9d8e38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/atoms/CodeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import {
EditorIndentSizeOptions,
EditorKeyMapOptions,
} from '../../lib/preferences'
import { osName } from '../../lib/platform'

const StyledContainer = styled.div`
.CodeMirror {
font-family: inherit;
}
.CodeMirror-dialog button {
// font-size: 70%;
background-color: transparent;
cursor: pointer;
height: 26px;
Expand Down Expand Up @@ -82,7 +82,7 @@ class CodeEditor extends React.Component<CodeEditorProps> {
extraKeys: {
Enter: 'newlineAndIndentContinueMarkdownList',
Tab: 'indentMore',
'Alt-F': 'findPersistent',
[osName === 'macos' ? 'Cmd-Alt-F' : 'Ctrl-Alt-F']: 'findPersistent',
Esc: 'clearSearch',
},
})
Expand Down

0 comments on commit b9d8e38

Please sign in to comment.