Bug 139430 - Incorrect event.keyIdentifier value for control keys on Linux
Summary: Incorrect event.keyIdentifier value for control keys on Linux
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-08 23:31 PST by Maxim Baz
Modified: 2014-12-08 23:31 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Baz 2014-12-08 23:31:30 PST
Use the following html to reproduce:

<html>
<body onkeydown="alert('event.keyIdentifier = ' + event.keyIdentifier);">
</body>
</html>

Press a control key, for example "Shift".

On Windows (Webkit 537.36), event.keyIdentifier == "Shift".
On Linux (Webkit 537.36), event.keyIdentifier == "U+00A0" (for LShift) or "U+00A1" (for RShift).
On Linux (Webkit nightly 601.1), event.keyIdentifier == "U+0000" for both LShift and RShift.

According to the document below, I believe key identifiers must be textual, i.e. "Shift" in the example above.
So Webkit on Windows behaves properly, but it should be fixed for the Linux platform.

http://www.w3.org/TR/2006/WD-DOM-Level-3-Events-20060413/keyset.html#KeySet-Set-h2