Bug 5678 - Javascript event keyCode/charCode/which is 25 for shift-tab, should be 9
Summary: Javascript event keyCode/charCode/which is 25 for shift-tab, should be 9
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 420+
Hardware: Macintosh OS X 10.4
: P2 Normal
Assignee: Darin Adler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-09 08:17 PST by Darin Adler
Modified: 2019-02-06 09:03 PST (History)
1 user (show)

See Also:


Attachments
fix handling of character codes for tab (1.04 KB, patch)
2005-11-09 08:18 PST, Darin Adler
ggaren: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Adler 2005-11-09 08:17:26 PST
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.
Comment 1 Darin Adler 2005-11-09 08:18:43 PST
Created attachment 4641 [details]
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.
Comment 2 Darin Adler 2005-11-09 08:27:19 PST
<rdar://problem/4300202> Javascript event keyCode/charCode/which is 25 for shift+tab, should be 9 
(5678)
Comment 3 Geoffrey Garen 2005-11-09 09:29:43 PST
Comment on attachment 4641 [details]
fix handling of character codes for tab

r=me
Comment 4 Lucas Forschler 2019-02-06 09:03:54 PST
Mass moving XML DOM bugs to the "DOM" Component.