mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-02 01:25:39 -05:00
Notebooks: Listen for Enter on Add Package Tab (#9124)
* Pressing enter searches for package * cleanup
This commit is contained in:
@@ -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>({
|
||||
|
||||
Reference in New Issue
Block a user