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:
Tim van der Meij 2026-06-21 19:05:50 +02:00 committed by GitHub
commit 1d8e952062
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,6 +57,7 @@ class PasswordPrompt {
this.input.addEventListener("keydown", e => {
if (e.keyCode === /* Enter = */ 13) {
this.#verify();
e.preventDefault();
}
});