WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
36797
For non-Roman layouts, keydown Event.keyCode is always 0
https://bugs.webkit.org/show_bug.cgi?id=36797
Summary
For non-Roman layouts, keydown Event.keyCode is always 0
Alexey Proskuryakov
Reported
2010-03-29 17:46:44 PDT
We're using character code to synthesize Windows virtual key code, which makes no sense for alphabetical keys because keyCode shouldn't depend on keyboard layout. This also doesn't match IE. As a result, keyCode is always zero for alphabetical keys for non-Roman layouts, such as e.g. Russian.
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2010-03-30 13:03:24 PDT
Fixed in <
http://trac.webkit.org/changeset/56804
> with
bug 36616
.
Alexey Proskuryakov
Comment 2
2010-03-30 13:21:19 PDT
Some more info for posterity: this fix was to match IE and Safari on Windows, as well as common sense. Firefox (at least on Mac) seems to have the same bug of giving a zero keyCode.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug