Summary: | REGRESSION: Returning false from onkeypress event on Input is ignored when key is Tab | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Elliott Sprehn <esprehn> | ||||
Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | adele, ap | ||||
Priority: | P1 | Keywords: | InRadar, Regression | ||||
Version: | 523.x (Safari 3) | ||||||
Hardware: | Mac | ||||||
OS: | OS X 10.4 | ||||||
URL: | http://enfinitystudios.thaposse.net/ | ||||||
Attachments: |
|
Description
Elliott Sprehn
2007-03-08 23:06:46 PST
Created attachment 13554 [details]
Test Case
In this test case pressing tab in both inputs should do nothing as per previous Safari behavior. However in the input where the event handler was attached with onkeypress the return value of false is ignored and the focus jumps off the input to the Back button in the browser.
It should also be noted that Gecko allows aborting Tab key presses with onkeypress, but *not* with onkeydown, which is the exact opposite of this bug. Committed revision 20453. We no longer dispatch keypress event for tab, arrow keys etc., so this fix has been effectively undone. |