We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8364a4c + 658b6e6 commit 11e3c10Copy full SHA for 11e3c10
1 file changed
js/stanford-pwdhash.js
@@ -278,7 +278,7 @@ SPH_PasswordProtector.prototype = {
278
}
279
280
// Printable keystrokes should be masked
281
- if(evt.type == "keypress") {
+ if(evt.type == "keypress" && evt.charCode!=13) {
282
evt.stopPropagation(); // Don't let user JavaScript see this event
283
evt.preventDefault(); // Do not let the character hit the page
284
evt.originalTarget.value = evt.originalTarget.value + String.fromCharCode(this.mask(evt.charCode));
0 commit comments