[Webkit-unassigned] [Bug 36616] Dvorak-Qwerty keyboard layout broken wrt javascript key codes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 25 19:32:16 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=36616





--- Comment #4 from Andrew Pouliot <andpoul at gmail.com>  2010-03-25 19:32:16 PST ---
Interesting: it took my reading the source code to realize that the behavior
for keypress is different than that of keydown.

Keydown is working correctly, ie returning k, whereas keydown returns T.

I updated the test case and here are the results for typing command-k:

onkeydown :  code:84 char:0 meta:true fromCharCode:T keyIdentifier:U+0054
keyLocation:0
onkeypress :  code:107 char:107 meta:true fromCharCode:k keyIdentifier:
keyLocation:0

Is keypress the canonical event to use for making keyboard commands, and I
didn't realize it, or is this still a bug with keydown?

In any case, the behavior of keydown is causing problems "in the real world,"
as few developers even are aware of the existence of alternate keyboard
layouts.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list