mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -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.content = [this.installedPkgTab.tab, this.addNewPkgTab.tab];
|
||||||
|
|
||||||
|
this.dialog.registerCloseValidator(() => {
|
||||||
|
return false; // Blocks Enter key from closing dialog.
|
||||||
|
});
|
||||||
|
|
||||||
azdata.window.openDialog(this.dialog);
|
azdata.window.openDialog(this.dialog);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user