learnrx icon indicating copy to clipboard operation
learnrx copied to clipboard

Exercise 40 answer doesn't work in firefox

Open krivulcik opened this issue 10 years ago • 1 comments

The sample answer for Exercise 40 doesn't work in firefox because of https://bugzilla.mozilla.org/show_bug.cgi?id=112379 .

The code uses String.fromCharCode(e.keyCode) where e is keypress event. Firefox uses charCode for events which generate characters.

krivulcik avatar Jun 27 '15 19:06 krivulcik

After changing the event in verifier from keypress to keyup, the exercise works in firefox, but the registered characters are converted to upper case. The exact same thing happens in Exercise 42, both in firefox and chromium - the verifier uses keyup event in Exercise 42.

krivulcik avatar Jun 27 '15 20:06 krivulcik