This commit is contained in:
Sandeep Somavarapu 2023-01-13 10:23:46 +01:00 committed by GitHub
parent 222994d349
commit 42c8a5476c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -193,6 +193,7 @@ export class SuggestEnabledInput extends Widget implements IThemable {
})));
const onKeyDownMonaco = Event.chain(this.inputWidget.onKeyDown);
this._register(onKeyDownMonaco.filter(e => e.keyCode === KeyCode.Enter).on(e => { e.preventDefault(); /** Do nothing. Enter causes new line which is not expected. */ }, this));
this._register(onKeyDownMonaco.filter(e => e.keyCode === KeyCode.DownArrow && (isMacintosh ? e.metaKey : e.ctrlKey)).on(() => this._onShouldFocusResults.fire(), this));
let preexistingContent = this.getValue();