mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that the grant wizard should be closed on pressing the ESC key. Fixes #4206
This commit is contained in:
committed by
Akshay Joshi
parent
d6bc3ccc8b
commit
33deacacee
@@ -184,11 +184,10 @@ define([
|
||||
|
||||
/* OnLoad Callback */
|
||||
this.onLoad();
|
||||
|
||||
setTimeout(function() {
|
||||
var container = $(self.el);
|
||||
commonUtils.findAndSetFocus(container);
|
||||
}, 100);
|
||||
}, 500);
|
||||
|
||||
return this;
|
||||
},
|
||||
@@ -292,6 +291,9 @@ define([
|
||||
} else if(event.target.tagName == 'TEXTAREA'){
|
||||
$(firstWizardFooterBtn).focus();
|
||||
}
|
||||
} else if (event.keyCode === 27){
|
||||
//close the wizard when esc key is pressed
|
||||
$(wizardHeader).find('button.ajs-close').click();
|
||||
}
|
||||
},
|
||||
enableDisableNext: function(disable) {
|
||||
|
||||
Reference in New Issue
Block a user