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
@@ -39,10 +39,10 @@ export function findAndSetFocus(container) {
|
||||
.pgadmin-controls:first .btn:not(.toggle),
|
||||
.pgadmin-controls:first,
|
||||
.ajs-commands:first,
|
||||
.CodeMirror-scroll`)
|
||||
.find('*[tabindex]:not([tabindex="-1"])');
|
||||
.CodeMirror-scroll,
|
||||
.pgadmin-wizard`)
|
||||
.find('*[tabindex]:not([tabindex="-1"]),input:enabled');
|
||||
}
|
||||
|
||||
if(first_el.length > 0) {
|
||||
first_el[0].focus();
|
||||
} else {
|
||||
|
||||
@@ -95,10 +95,6 @@
|
||||
onKeydown: function (e) {
|
||||
var command = new Backgrid.Command(e);
|
||||
if (command.passThru()) return true; // skip ahead to `change`
|
||||
if (command.cancel()) {
|
||||
e.stopPropagation();
|
||||
this.checkbox().blur();
|
||||
}
|
||||
else if (command.save() || command.moveLeft() || command.moveRight() ||
|
||||
command.moveUp() || command.moveDown()) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user