Bug 36797
| Summary: | For non-Roman layouts, keydown Event.keyCode is always 0 | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> |
| Component: | WebCore Misc. | Assignee: | Alexey Proskuryakov <ap> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Mac | ||
| OS: | All | ||
Alexey Proskuryakov
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
Fixed in <http://trac.webkit.org/changeset/56804> with bug 36616.
Alexey Proskuryakov
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.