public inbox for [email protected]
help / color / mirror / Atom feedFrom: Pradip Parkale <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin][RM4206]: Grant wizard does not close when we press ESC key
Date: Mon, 6 Apr 2020 14:20:36 +0530
Message-ID: <CAJ9T6StCPjdwH=OxgBpEGdmbSFJmQ6SUNN0SaLZ0MZGxOdpNbw@mail.gmail.com> (raw)
Hi Hackers,
Please find the attached patch to close the Grant Wizard when the ESC key
is pressed.
--
Thanks & Regards,
Pradip Parkale
QMG, EnterpriseDB Corporation
Attachments:
[application/octet-stream] RM4206.patch (1.1K, 3-RM4206.patch)
download | inline diff:
diff --git a/web/pgadmin/browser/static/js/wizard.js b/web/pgadmin/browser/static/js/wizard.js
index 3068572d1..c696c8046 100644
--- a/web/pgadmin/browser/static/js/wizard.js
+++ b/web/pgadmin/browser/static/js/wizard.js
@@ -292,6 +292,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) {
diff --git a/web/pgadmin/static/js/utils.js b/web/pgadmin/static/js/utils.js
index 86dae698e..2ddae874d 100644
--- a/web/pgadmin/static/js/utils.js
+++ b/web/pgadmin/static/js/utils.js
@@ -38,7 +38,8 @@ export function findAndSetFocus(container) {
.pgadmin-controls:first input:enabled,
.pgadmin-controls:first .btn:not(.toggle),
.ajs-commands:first,
- .CodeMirror-scroll`)
+ .CodeMirror-scroll,
+ .wizard-header`)
.find('*[tabindex]:not([tabindex="-1"])');
}
view thread (4+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [pgAdmin][RM4206]: Grant wizard does not close when we press ESC key
In-Reply-To: <CAJ9T6StCPjdwH=OxgBpEGdmbSFJmQ6SUNN0SaLZ0MZGxOdpNbw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox