Bug 36797 - For non-Roman layouts, keydown Event.keyCode is always 0
Summary: For non-Roman layouts, keydown Event.keyCode is always 0
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac All
: P2 Normal
Assignee: Alexey Proskuryakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-29 17:46 PDT by Alexey Proskuryakov
Modified: 2010-03-30 13:21 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 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.
Comment 1 Alexey Proskuryakov 2010-03-30 13:03:24 PDT
Fixed in <http://trac.webkit.org/changeset/56804> with bug 36616.
Comment 2 Alexey Proskuryakov 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.