File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/vs/workbench/contrib/notebook/browser/contrib/find Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ class NotebookFindWidget extends SimpleFindReplaceWidget implements INotebookEdi
91
91
DOM . append ( this . _notebookEditor . getDomNode ( ) , this . getDomNode ( ) ) ;
92
92
this . _findWidgetFocused = KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED . bindTo ( contextKeyService ) ;
93
93
this . _register ( this . _findInput . onKeyDown ( ( e ) => this . _onFindInputKeyDown ( e ) ) ) ;
94
+ this . _register ( this . _replaceInput . onKeyDown ( ( e ) => this . _onReplaceInputKeyDown ( e ) ) ) ;
94
95
95
96
this . _register ( this . _state . onFindReplaceStateChange ( ( e ) => {
96
97
this . onInputChanged ( ) ;
@@ -134,6 +135,14 @@ class NotebookFindWidget extends SimpleFindReplaceWidget implements INotebookEdi
134
135
}
135
136
}
136
137
138
+ private _onReplaceInputKeyDown ( e : IKeyboardEvent ) : void {
139
+ if ( e . equals ( KeyCode . Enter ) ) {
140
+ this . replaceOne ( ) ;
141
+ e . preventDefault ( ) ;
142
+ return ;
143
+ }
144
+ }
145
+
137
146
protected onInputChanged ( ) : boolean {
138
147
this . _state . change ( { searchString : this . inputValue } , false ) ;
139
148
// this._findModel.research();
You can’t perform that action at this time.
0 commit comments