mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -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.addNewPkgTab.registerContent(async view => {
|
||||||
this.newPackagesSearchBar = view.modelBuilder.inputBox().withProperties({ width: '400px' }).component();
|
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()
|
this.packagesSearchButton = view.modelBuilder.button()
|
||||||
.withProperties<azdata.ButtonProperties>({
|
.withProperties<azdata.ButtonProperties>({
|
||||||
|
|||||||
Reference in New Issue
Block a user