focus terminal for run recent when alt is pressed (#159107)

fix #158935
This commit is contained in:
Megan Rogge 2022-08-24 14:29:43 -07:00 committed by GitHub
parent 791feffa2e
commit 49983af832
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1073,6 +1073,9 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
}
this.sendText(text, !quickPick.keyMods.alt, true);
quickPick.hide();
if (quickPick.keyMods.alt) {
this.focus();
}
});
if (value) {
quickPick.value = value;