Closed Bug 163030 Opened 22 years ago Closed 11 years ago

document.captureEvents captures keyboard navigation keypresses.

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: scottj, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: access)

Attachments

(1 file, 1 obsolete file)

This page features two text boxes, one above the other.  The first box is in a
form all its own.  If I type text into this box and press enter, the focus moves
to the next box courtesy of the underlying javascript.  I cannot, however, tab
between these two boxes.  While I'm sure this behavior makes sense
programmatically, it makes zero sense from the perspective of the user.  The
user who doesn't view the source simply sees two text boxes.  He puts the cursor
in the first and cannot tab to the second.
Attached file possible test case (obsolete) —
This file shows two text boxes in table cells very similar to the layout of the
problem page but DOES NOT exhibit the same behavior.
Confirming on 2002080718-trunk (Win32).

Changing summary from:
Can't tab between elements on separate forms
to:
document.captureEvents captures keyboard navigation keypresses.

The referenced page is using document.captureEvents to restrict the characters 
allowed in certain text fields to alphanumeric characters only.  In IE, this 
behaviour works as expected, and TAB still moves between fields.

In Mozilla, *every* non-meta keypress is sent to the document's onkeypress 
handler, including (for example) TAB, F5 (reload), and Alt-Left (back).

This effectively breaks most keyboard navigation.

Most Ctrl and Alt keys work, so Alt-F4, Alt-F, and Ctrl-R all work, but Alt-
Left is disabled, meaning you can't navigate back or forward using the 
keyboard, either.

This can't be right.
-> event handling

Example testcase to follow.
Assignee: alexsavulov → joki
Status: UNCONFIRMED → NEW
Component: Form Submission → Event Handling
Ever confirmed: true
QA Contact: vladimire → rakeshmishra
Summary: Can't tab between elements on separate forms → document.captureEvents captures keyboard navigation keypresses.
Attached file Sample testcase
After loading this testcase, you will not be able to TAB between fields, use F5
to reload the page, or Alt-Left to return to this bug report.
Attachment #95557 - Attachment is obsolete: true
QA Contact: rakeshmishra → trix
*** Bug 148938 has been marked as a duplicate of this bug. ***
->bryner, but punt as needed.
Assignee: joki → bryner
Keywords: access
Is this bug completely dead?  Over 3 years, and it is still marked as NEW?  As stated above in comment #2, this effectively breaks most keyboard navigation.
Assignee: bryner → mats.palmgren
Blocks: focusnav
QA Contact: trix → events
Assignee: matspal → nobody
captureEvent has been already dropped.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: