mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-22 16:05:56 +02:00
Merge pull request #21482 from Snuffleupagus/password-input-Enter-preventDefault
Stop event propagation, for the `Enter` key, in the passwordPrompt input
This commit is contained in:
commit
1d8e952062
@ -57,6 +57,7 @@ class PasswordPrompt {
|
||||
this.input.addEventListener("keydown", e => {
|
||||
if (e.keyCode === /* Enter = */ 13) {
|
||||
this.#verify();
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user