mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Block Enter key from closing Manage Packages dialog. (#7584)
This commit is contained in:
@@ -38,6 +38,10 @@ export class ManagePackagesDialog {
|
||||
|
||||
this.dialog.content = [this.installedPkgTab.tab, this.addNewPkgTab.tab];
|
||||
|
||||
this.dialog.registerCloseValidator(() => {
|
||||
return false; // Blocks Enter key from closing dialog.
|
||||
});
|
||||
|
||||
azdata.window.openDialog(this.dialog);
|
||||
}
|
||||
|
||||
@@ -64,4 +68,4 @@ export class ManagePackagesDialog {
|
||||
level: azdata.window.MessageLevel.Error
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user