Closed Bug 756096 Opened 13 years ago Closed 13 years ago

keyCode is always 0 on keydown and keyup when typing in Thai language.

Categories

(Firefox :: Untriaged, defect)

12 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 677252

People

(Reporter: org.yi.dttvb, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20100101 Firefox/12.0 Build ID: 20120420145725 Steps to reproduce: With Thai keyboard layout, press a key that types a Thai character and triggers the keyup->keypress->keydown DOM event. - Go to http://unixpapa.com/js/testkey.html - Switch to Thai keyboard layout. - Press a key, for example "ก", which corresponds to the "D" key. Actual results: The keyCode turns out to be 0. Firefox on Mac reports: keydown keyCode=0 which=0 charCode=0 keypress keyCode=0 which=3585 charCode=3585 keyup keyCode=0 which=0 charCode=0 Expected results: The physical key that is being pressed should be reported. Here is the result on Chrome for Mac: keydown keyCode=68 (D) which=68 (D) charCode=0 keypress keyCode=3585 which=3585 charCode=3585 keyup keyCode=68 (D) which=68 (D) charCode=0 Note that Firefox on Windows doesn't have this issue and should have the same output.
See Also: → 447757
should be fixed by bug 677252. feel free to reopen this bug if you can see this bug on tomorrow build.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
I meant 5/18's build.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 I think I see a similar bug here. My keyboard is not Thai, it's Italian. When I type Italian characters, like àèéìòù, I get keyCode=0. Steps to reproduce: - Switch to Italian layout (mine is an extended keyboard, with shord left shift key) - Go to http://unixpapa.com/js/testkey.html - press a key with grave accent (for example, any of 3 keys between L and ENTER) Actual result: keydown keyCode=0 which=0 charCode=0 keypress keyCode=0 which=249 charCode=249 keyup keyCode=0 which=0 charCode=0 Expected result (copied from execution on Chrome): keydown keyCode=191 which=191 charCode=0 keypress keyCode=249 which=249 charCode=249 keyup keyCode=191 which=191 charCode=0 Using Windows7 64-bit.
You need to log in before you can comment on or make changes to this bug.