Merge pull request #15341 from Snuffleupagus/PasswordPrompt-cancel-button
Improve handling of the "Cancel"-button in the password dialog
This commit is contained in:
commit
4469453425
@ -53,7 +53,7 @@ class PasswordPrompt {
|
|||||||
|
|
||||||
// Attach the event listeners.
|
// Attach the event listeners.
|
||||||
this.submitButton.addEventListener("click", this.#verify.bind(this));
|
this.submitButton.addEventListener("click", this.#verify.bind(this));
|
||||||
this.cancelButton.addEventListener("click", this.#cancel.bind(this));
|
this.cancelButton.addEventListener("click", this.close.bind(this));
|
||||||
this.input.addEventListener("keydown", e => {
|
this.input.addEventListener("keydown", e => {
|
||||||
if (e.keyCode === /* Enter = */ 13) {
|
if (e.keyCode === /* Enter = */ 13) {
|
||||||
this.#verify();
|
this.#verify();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user