Open Bug 555400 Opened 14 years ago Updated 2 years ago

Ctrl-u in input text field triggers accesskey instead of clearing the field

Categories

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

PowerPC
macOS
defect

Tracking

()

UNCONFIRMED

People

(Reporter: vincent-moz, Unassigned)

References

()

Details

(Whiteboard: DUPEME)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-GB; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-GB; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2

On pages that have accesskey="u", Ctrl-u in input text field triggers accesskey instead of clearing the field as usual.

Reproducible: Always

Steps to Reproduce:
1. Open https://bugzilla.mozilla.org/query.cgi
2. Type something for the summary.
3. Type Ctrl-u.
Actual Results:  
The focus goes to the input text field for "The URL".

Expected Results:  
The current input text field should be cleared.
I believe this is the general behavior of in-page accesskeys.  They override all other shortcuts bound to the same modifiers....  The problem is that most people have no idea the Ctrl-u shortcut even exists on Mac textfields, and would be very surprised if it got triggered when they're just trying to trigger an accesskey.
Whiteboard: DUPEME
They would learn the Ctrl-u shortcut at this time...

The best solution would be to avoid this clash by choosing a different modifier for accesskeys. Otherwise this could be controlled by options.
Note: the page has changed, so that this bug is no longer triggered by this page.
The problem of keys overridden by other uses is also mentioned in bug 276295 (this one for FAYT).
Component: Event Handling → User events and focus handling
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.