Open Bug 382011 Opened 18 years ago Updated 2 years ago

accesskey event for easier content shortcut handling

Categories

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

enhancement

Tracking

()

People

(Reporter: zeniko, Unassigned)

References

Details

The only save modifier combo for web content seems to be <contentAccess>, i.e. Alt+Shift on Windows/Linux and Ctrl on OS X (see bug 380637 comment #20). Since the modifier isn't static and is even customizable through about:config, there's no clean way of easily implementing shortcuts in JavaScript alone. Before web apps start kidnapping more commonly used shortcuts such as Ctrl+S (which currently _is_ possible - see bug 380637), we might want to offer them an "accesskey" event in the same way we already offer "keypress" events (except that they only bubble from <body> upwards). For symmetry reasons, the same event should also be usable in chrome, of course being triggered by <chromeAccess> instead. --------------------------------------------------------------------------- As an alternative, adding an .accessKey property to KeyEvent (similar to .altKey, etc.) would do the job almost as nicely as well.
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.