On 6/20/2017 5:28 AM, Brian Grinstead wrote:
> I was wondering what would need to be done in order to use the accesskey attribute on HTML elements in the browser chrome. Here are some of the differences between the attribute in HTML and XUL that I've found so far:
>
> 1) In XUL (
https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Attribute/accesskey) the shortcut is `Control + key` on Windows and `Command + key` on Mac.
Wow, the document is wrong. Ctrl+foo or Cmd+foo are usually called as
"shortcut key" which are different from "access key".
On Windows, chrome's access key works with Alt.
Yes, this is right.
> Would we want to change the HTML shortcut (in browser chrome) to match XUL behavior?
So, I'm not sure if you are talking about access key or shortcut key
here. But I guess, you're talking about access key.
Then, it depends on the type of DocShell (chrome vs. content). So, not
related to the file type. E.g., we have this bug:
https://bugzil.la/349943
On macOS, native UI doesn't have access key. Therefore, we don't support
it only on macOS.
Yes. Underlining access key's character needs additional hack. I have no
idea how to implement it easily in HTML. Perhaps, capsuling with Shadow DOM?
--
Masayuki Nakano <
masa...@d-toybox.com>
Software Engineer, Mozilla