@@ -85,8 +85,6 @@ class Editor extends React.Component {
85
85
}
86
86
} , 2000 ) ;
87
87
this . showFind = this . showFind . bind ( this ) ;
88
- this . findNext = this . findNext . bind ( this ) ;
89
- this . findPrev = this . findPrev . bind ( this ) ;
90
88
this . showReplace = this . showReplace . bind ( this ) ;
91
89
this . getContent = this . getContent . bind ( this ) ;
92
90
}
@@ -149,8 +147,8 @@ class Editor extends React.Component {
149
147
[ `${ metaKey } -Enter` ] : ( ) => null ,
150
148
[ `Shift-${ metaKey } -Enter` ] : ( ) => null ,
151
149
[ `${ metaKey } -F` ] : 'findPersistent' ,
152
- [ `${ metaKey } -G` ] : 'findNext ' ,
153
- [ `Shift-${ metaKey } -G` ] : 'findPrev ' ,
150
+ [ `${ metaKey } -G` ] : 'findPersistentNext ' ,
151
+ [ `Shift-${ metaKey } -G` ] : 'findPersistentPrev ' ,
154
152
[ replaceCommand ] : 'replace'
155
153
} ) ;
156
154
@@ -196,8 +194,6 @@ class Editor extends React.Component {
196
194
this . props . provideController ( {
197
195
tidyCode : this . tidyCode ,
198
196
showFind : this . showFind ,
199
- findNext : this . findNext ,
200
- findPrev : this . findPrev ,
201
197
showReplace : this . showReplace ,
202
198
getContent : this . getContent
203
199
} ) ;
@@ -317,16 +313,6 @@ class Editor extends React.Component {
317
313
return updatedFile ;
318
314
}
319
315
320
- findPrev ( ) {
321
- this . _cm . focus ( ) ;
322
- this . _cm . execCommand ( 'findPrev' ) ;
323
- }
324
-
325
- findNext ( ) {
326
- this . _cm . focus ( ) ;
327
- this . _cm . execCommand ( 'findNext' ) ;
328
- }
329
-
330
316
showFind ( ) {
331
317
this . _cm . execCommand ( 'findPersistent' ) ;
332
318
}
0 commit comments