Open Bug 555400 Opened 11 years ago Updated 1 year ago
Ctrl-u in input text field triggers accesskey instead of clearing the field
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-GB; rv:22.214.171.124) Gecko/20100316 Firefox/3.6.2 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-GB; rv:126.96.36.199) 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.
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).
Depends on: 728103
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.