Skip to content

Commit 1aa6c17

Browse files
authored
Merge pull request #1801 from satyasaibhushan/removes_find_next_popup_closing_issues
Removes find next popup closing issues
2 parents f1eee4b + 9c43a19 commit 1aa6c17

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

client/components/Nav.jsx

-2
Original file line numberDiff line numberDiff line change
@@ -867,8 +867,6 @@ Nav.propTypes = {
867867
cmController: PropTypes.shape({
868868
tidyCode: PropTypes.func,
869869
showFind: PropTypes.func,
870-
findNext: PropTypes.func,
871-
findPrev: PropTypes.func,
872870
showReplace: PropTypes.func,
873871
getContent: PropTypes.func
874872
}),

client/modules/IDE/components/Editor.jsx

+2-16
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ class Editor extends React.Component {
8585
}
8686
}, 2000);
8787
this.showFind = this.showFind.bind(this);
88-
this.findNext = this.findNext.bind(this);
89-
this.findPrev = this.findPrev.bind(this);
9088
this.showReplace = this.showReplace.bind(this);
9189
this.getContent = this.getContent.bind(this);
9290
}
@@ -149,8 +147,8 @@ class Editor extends React.Component {
149147
[`${metaKey}-Enter`]: () => null,
150148
[`Shift-${metaKey}-Enter`]: () => null,
151149
[`${metaKey}-F`]: 'findPersistent',
152-
[`${metaKey}-G`]: 'findNext',
153-
[`Shift-${metaKey}-G`]: 'findPrev',
150+
[`${metaKey}-G`]: 'findPersistentNext',
151+
[`Shift-${metaKey}-G`]: 'findPersistentPrev',
154152
[replaceCommand]: 'replace'
155153
});
156154

@@ -196,8 +194,6 @@ class Editor extends React.Component {
196194
this.props.provideController({
197195
tidyCode: this.tidyCode,
198196
showFind: this.showFind,
199-
findNext: this.findNext,
200-
findPrev: this.findPrev,
201197
showReplace: this.showReplace,
202198
getContent: this.getContent
203199
});
@@ -317,16 +313,6 @@ class Editor extends React.Component {
317313
return updatedFile;
318314
}
319315

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-
330316
showFind() {
331317
this._cm.execCommand('findPersistent');
332318
}

0 commit comments

Comments
 (0)