<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>139430</bug_id>
          
          <creation_ts>2014-12-08 23:31:30 -0800</creation_ts>
          <short_desc>Incorrect event.keyIdentifier value for control keys on Linux</short_desc>
          <delta_ts>2014-12-08 23:31:40 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Maxim Baz">webkit.bugzilla</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit.bugzilla</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1053668</commentid>
    <comment_count>0</comment_count>
    <who name="Maxim Baz">webkit.bugzilla</who>
    <bug_when>2014-12-08 23:31:30 -0800</bug_when>
    <thetext>Use the following html to reproduce:

&lt;html&gt;
&lt;body onkeydown=&quot;alert(&apos;event.keyIdentifier = &apos; + event.keyIdentifier);&quot;&gt;
&lt;/body&gt;
&lt;/html&gt;

Press a control key, for example &quot;Shift&quot;.

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

According to the document below, I believe key identifiers must be textual, i.e. &quot;Shift&quot; 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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>