Bug 5678

Summary: Javascript event keyCode/charCode/which is 25 for shift-tab, should be 9
Product: WebKit Reporter: Darin Adler <darin>
Component: DOMAssignee: Darin Adler <darin>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
fix handling of character codes for tab ggaren: review+

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.