Notebooks: Listen for Enter on Add Package Tab (#9124)

* Pressing enter searches for package

* cleanup
This commit is contained in:
Chris LaFreniere
2020-02-13 11:14:51 -08:00
committed by GitHub
parent 844bf04c42
commit f10a504f45

View File

@@ -33,6 +33,10 @@ export class AddNewPackageTab {
this.addNewPkgTab.registerContent(async view => {
this.newPackagesSearchBar = view.modelBuilder.inputBox().withProperties({ width: '400px' }).component();
// Search package by name when pressing enter
this.newPackagesSearchBar.onEnterKeyPressed(async () => {
await this.loadNewPackageInfo();
});
this.packagesSearchButton = view.modelBuilder.button()
.withProperties<azdata.ButtonProperties>({