File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
client/modules/IDE/components Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ class Editor extends React.Component {
123
123
124
124
delete this . _cm . options . lint . options . errors ;
125
125
126
+ const replaceCommand = metaKey === 'Ctrl' ? `${ metaKey } -H` : `${ metaKey } -Option-F` ;
126
127
this . _cm . setOption ( 'extraKeys' , {
127
128
Tab : ( cm ) => {
128
129
// might need to specify and indent more?
@@ -138,7 +139,7 @@ class Editor extends React.Component {
138
139
[ `${ metaKey } -F` ] : 'findPersistent' ,
139
140
[ `${ metaKey } -G` ] : 'findNext' ,
140
141
[ `Shift-${ metaKey } -G` ] : 'findPrev' ,
141
- [ ` ${ metaKey } -R` ] : 'replace' ,
142
+ replaceCommand : 'replace' ,
142
143
} ) ;
143
144
144
145
this . initializeDocuments ( this . props . files ) ;
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { useTranslation } from 'react-i18next' ;
3
- import { metaKeyName , } from '../../../utils/metaKey' ;
3
+ import { metaKeyName , metaKey } from '../../../utils/metaKey' ;
4
4
5
5
function KeyboardShortcutModal ( ) {
6
6
const { t } = useTranslation ( ) ;
7
+ const replaceCommand = metaKey === 'Ctrl' ? `${ metaKeyName } + H` : `${ metaKeyName } + ⌥ + F` ;
7
8
return (
8
9
< div className = "keyboard-shortcuts" >
9
10
< h3 className = "keyboard-shortcuts__title" > { t ( 'KeyboardShortcuts.CodeEditing.CodeEditing' ) } </ h3 >
@@ -35,7 +36,7 @@ function KeyboardShortcutModal() {
35
36
</ li >
36
37
< li className = "keyboard-shortcut-item" >
37
38
< span className = "keyboard-shortcut__command" >
38
- { metaKeyName } + R
39
+ { replaceCommand }
39
40
</ span >
40
41
< span > { t ( 'KeyboardShortcuts.CodeEditing.ReplaceTextMatch' ) } </ span >
41
42
</ li >
You can’t perform that action at this time.
0 commit comments