<?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>36797</bug_id>
          
          <creation_ts>2010-03-29 17:46:44 -0700</creation_ts>
          <short_desc>For non-Roman layouts, keydown Event.keyCode is always 0</short_desc>
          <delta_ts>2010-03-30 13:21:19 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Alexey Proskuryakov">ap</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>205772</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-03-29 17:46:44 -0700</bug_when>
    <thetext>We&apos;re using character code to synthesize Windows virtual key code, which makes no sense for alphabetical keys because keyCode shouldn&apos;t depend on keyboard layout. This also doesn&apos;t match IE.

As a result, keyCode is always zero for alphabetical keys for non-Roman layouts, such as e.g. Russian.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>206132</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-03-30 13:03:24 -0700</bug_when>
    <thetext>Fixed in &lt;http://trac.webkit.org/changeset/56804&gt; with bug 36616.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>206146</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-03-30 13:21:19 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>