<?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>5678</bug_id>
          
          <creation_ts>2005-11-09 08:17:26 -0800</creation_ts>
          <short_desc>Javascript event keyCode/charCode/which is 25 for shift-tab, should be 9</short_desc>
          <delta_ts>2019-02-06 09:03:54 -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>DOM</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</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="Darin Adler">darin</reporter>
          <assigned_to name="Darin Adler">darin</assigned_to>
          <cc>cdumez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23850</commentid>
    <comment_count>0</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-11-09 08:17:26 -0800</bug_when>
    <thetext>When capturing a keypress in Safari with Javascript, shift+tab has the value 25, when Mozilla uses 9.

* STEPS TO REPRODUCE
1. Open attached test page in Safari and Firefox.
2. Type tab in text box. See values of key codes is 9, shiftKey is false;
3. Type shift+tab in text box. Value is 9 in Firefox, 25 in Safari.

* RESULTS
Value should be 9.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23851</commentid>
    <comment_count>1</comment_count>
      <attachid>4641</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-11-09 08:18:43 -0800</bug_when>
    <thetext>Created attachment 4641
fix handling of character codes for tab

AppKit has special values for tab. This patch makes sure we always use ASCII 9,
even for shift-Tab.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23861</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-11-09 08:27:19 -0800</bug_when>
    <thetext>&lt;rdar://problem/4300202&gt; Javascript event keyCode/charCode/which is 25 for shift+tab, should be 9 
(5678)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23876</commentid>
    <comment_count>3</comment_count>
      <attachid>4641</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2005-11-09 09:29:43 -0800</bug_when>
    <thetext>Comment on attachment 4641
fix handling of character codes for tab

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1503063</commentid>
    <comment_count>4</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2019-02-06 09:03:54 -0800</bug_when>
    <thetext>Mass moving XML DOM bugs to the &quot;DOM&quot; Component.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4641</attachid>
            <date>2005-11-09 08:18:43 -0800</date>
            <delta_ts>2005-11-09 09:29:43 -0800</delta_ts>
            <desc>fix handling of character codes for tab</desc>
            <filename>ShiftTabPatch.txt</filename>
            <type>text/plain</type>
            <size>1068</size>
            <attacher name="Darin Adler">darin</attacher>
            
              <data encoding="base64">SW5kZXg6IGt3cS9LV1FFdmVudC5tbQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3ZzL3Jvb3QvV2Vi
Q29yZS9rd3EvS1dRRXZlbnQubW0sdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMzAKZGlmZiAtcCAt
dSAtcjEuMzAga3dxL0tXUUV2ZW50Lm1tCi0tLSBrd3EvS1dRRXZlbnQubW0JMyBPY3QgMjAwNSAy
MToxMzowMiAtMDAwMAkxLjMwCisrKyBrd3EvS1dRRXZlbnQubW0JMiBOb3YgMjAwNSAwNDo0Njoz
NyAtMDAwMApAQCAtMzYwLDYgKzM2MCw5IEBAIHN0YXRpYyBib29sIGlzS2V5cGFkRXZlbnQoTlNF
dmVudCAqZXZlbnQKIHN0YXRpYyBpbnQgV2luZG93c0tleUNvZGVGb3JLZXlFdmVudChOU0V2ZW50
ICpldmVudCkKIHsKICAgICBzd2l0Y2ggKFtldmVudCBrZXlDb2RlXSkgeworICAgICAgICAvLyBW
S19UQUIgKDA5KSBUQUIga2V5CisgICAgICAgIGNhc2UgNDg6IHJldHVybiAweDA5OworCiAgICAg
ICAgIC8vIFZLX0NMRUFSICgwQykgQ0xFQVIga2V5CiAgICAgICAgIGNhc2UgNzE6IHJldHVybiAw
eDBDOwogCkBAIC04OTgsMTEgKzkwMSwxMyBAQCBRS2V5RXZlbnQ6OlFLZXlFdmVudChOU0V2ZW50
ICpldmVudCwgYm9vCiAgICAgICBfV2luZG93c0tleUNvZGUoV2luZG93c0tleUNvZGVGb3JLZXlF
dmVudChldmVudCkpCiB7CiAgICAgLy8gVHVybiAweDdGIGludG8gMHgwOCwgYmVjYXVzZSBiYWNr
c3BhY2UgbmVlZHMgdG8gYWx3YXlzIGJlIDB4MDguCi0gICAgaWYgKF90ZXh0ID09ICJceDdGIikg
eworICAgIGlmIChfdGV4dCA9PSAiXHg3RiIpCiAgICAgICAgIF90ZXh0ID0gIlx4OCI7Ci0gICAg
fQotICAgIGlmIChfdW5tb2RpZmllZFRleHQgPT0gIlx4N0YiKSB7CisgICAgaWYgKF91bm1vZGlm
aWVkVGV4dCA9PSAiXHg3RiIpCiAgICAgICAgIF91bm1vZGlmaWVkVGV4dCA9ICJceDgiOworICAg
IGlmIChfV2luZG93c0tleUNvZGUgPT0gOSkgeworICAgICAgICBfdGV4dCA9ICJceDkiOworICAg
ICAgICBfdW5tb2RpZmllZFRleHQgPSAiXHg5IjsKICAgICB9CiB9CiAK
</data>
<flag name="review"
          id="835"
          type_id="1"
          status="+"
          setter="ggaren"
    />
          </attachment>
      

    </bug>

</bugzilla>