<?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>41016</bug_id>
          
          <creation_ts>2010-06-22 15:39:15 -0700</creation_ts>
          <short_desc>REGRESSION: keycode for &quot;N&quot; changes when command+option are down</short_desc>
          <delta_ts>2010-06-22 16:03:35 -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>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sidney San Martín">s+webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>241489</commentid>
    <comment_count>0</comment_count>
      <attachid>59423</attachid>
    <who name="Sidney San Martín">s+webkit</who>
    <bug_when>2010-06-22 15:39:15 -0700</bug_when>
    <thetext>Created attachment 59423
Example. Warning: eats key presses.

In the r57958 nightly (covering r57791:57958), the key code for the N key onkeydown, when the command and option modifiers are down, changes from 78 (expected) to 192 (what?).

r57958 is in the wild at this point, in Safari 5 at least.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>241492</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2010-06-22 15:47:12 -0700</bug_when>
    <thetext>Broke between r57948 and r57951. I guess http://trac.webkit.org/changeset/57951</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>241495</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2010-06-22 15:48:44 -0700</bug_when>
    <thetext>&lt;rdar://problem/8119979&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>241502</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-06-22 16:03:35 -0700</bug_when>
    <thetext>That&apos;s key code for tilde, the character one can see in Keyboard Viewer at N position with Cmd+Option depressed. It&apos;s usual location on Apple U.S. keyboards is to the left of &apos;1&apos; key.

Per bug 37776, Cmd-key combos have to use translated character code to produce key codes, and not physical key code. But doing so makes us handle Cmd+Option+N as tilde.

Cmd+Option+N should produce &apos;N&apos; keyCode for U.S. keyboard, same for Dvorak-QWERTY keyboard, but &apos;B&apos; keyCode for plain Dvorak keyboard. This is tricky, I&apos;m not sure how to implement such a rule.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>59423</attachid>
            <date>2010-06-22 15:39:15 -0700</date>
            <delta_ts>2010-06-22 15:39:15 -0700</delta_ts>
            <desc>Example. Warning: eats key presses.</desc>
            <filename>keycodes.html</filename>
            <type>text/html</type>
            <size>523</size>
            <attacher name="Sidney San Martín">s+webkit</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+Cgo8aHRtbD4KPGhlYWQ+Cgk8dGl0bGU+V2ViS2l0IHI1Nzc5MTo1Nzk1
OCBOIGtleWNvZGU8L3RpdGxlPgoJPHN0eWxlIHR5cGU9InRleHQvY3NzIiBtZWRpYT0ic2NyZWVu
Ij4KCQlkaXZ7CgkJCXRleHQtYWxpZ246IGNlbnRlcjsKCQkJZm9udDogMThweCBIZWx2ZXRpY2Es
IEFyaWFsLCBzYW5zLXNlcmlmOwoJCX0KCTwvc3R5bGU+CjwvaGVhZD4KPGJvZHk+Cgk8ZGl2PiZu
ZGFzaDsgUHJlc3Mgc29tZSBrZXlzIChlc3BlY2lhbGx5IHRoZSBOIGtleSwgd2l0aCBhbmQgd2l0
aG91dCBjb21tYW5kK29wdGlvbiBoZWxkIGRvd24pISAmbmRhc2g7PC9kaXY+Cgk8c2NyaXB0IHR5
cGU9InRleHQvamF2YXNjcmlwdCI+CgkJdmFyIGRpdiA9IGRvY3VtZW50LmdldEVsZW1lbnRzQnlU
YWdOYW1lKCdkaXYnKVswXTsKCQlkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQub25rZXlkb3duID0g
ZnVuY3Rpb24oZSl7IGRpdi5pbm5lclRleHQgPSBlLmtleUNvZGU7IHJldHVybiBmYWxzZTsgfTsK
CTwvc2NyaXB0Pg==
</data>

          </attachment>
      

    </bug>

</bugzilla>