-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why allow focus only, why not require activation? #15
Comments
I think we should generally recommend it, for the reason you suggest. But there are a couple of reasons not to require it always:
I'd actually like to see implementations provide a mode where they continually accept accesskeys until the mode is turned off - which enable game-like controls without all the drawbacks of them being in javascript. So I think we should be setting expectations of common implementation strategies, and explaining why other patterns might be used. As another implementation point, it would be nice to allow the user to set the accesskey accelerator. Many browsers on mac use ctrl-alt by default, which means they run into a conflict with VoiceOver. VoiceOver always wins the conflict, so users are not surprised, but again this is a disincentive for authors. If VoiceOver could automatically move the accelerator to some other key or combo, everyone would win… |
I updated the draft, so that commands (is the concept still defined?) should be activated if a shortcut is unique. |
The spec says that when a user presses the access key, the user agent must focus the target element, but it may trigger the action of the command.
Why?
If user agents are allowed to not trigger the action of the command, then authors can't rely on accesskey as a replacement for existing shortcuts that trigger actions. That will result in authors sticking with JavaScript key handlers rather than switching to accesskey.
I propose that we require user agents to trigger the action of the command if accesskey is placed on an activatable element. That will make it more useful to authors and encourage its adoption.
The text was updated successfully, but these errors were encountered: