|Summary:||For non-Roman layouts, keydown Event.keyCode is always 0|
|Product:||WebKit||Reporter:||Alexey Proskuryakov <ap>|
|Component:||WebCore Misc.||Assignee:||Alexey Proskuryakov <ap>|
|Version:||528+ (Nightly build)|
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.