Skip to content

Commit

Permalink
[] (0) Make accesskey='' activate/click elements, not just focus them…
Browse files Browse the repository at this point in the history
…. This includes a horrific paragraph of confusingness. Let me know if you can find a clear way to rephrase it.

git-svn-id: http://svn.whatwg.org/webapps@3489 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 29, 2009
1 parent f05434f commit a94453c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 32 deletions.
31 changes: 17 additions & 14 deletions index
Expand Up @@ -593,7 +593,7 @@
<li><a href=#using-the-bb-element-to-define-a-command><span class=secno>4.11.6.6 </span>Using the <code>bb</code> element to define a command</a></li>
<li><a href=#using-the-accesskey-attribute-on-a-label-element-to-define-a-command><span class=secno>4.11.6.7 </span>Using the <code title=attr-accesskey>accesskey</code> attribute on a <code>label</code> element to define a command</a></li>
<li><a href=#using-the-accesskey-attribute-on-a-legend-element-to-define-a-command><span class=secno>4.11.6.8 </span>Using the <code title=attr-accesskey>accesskey</code> attribute on a <code>legend</code> element to define a command</a></li>
<li><a href=#using-the-accesskey-attribute-to-define-a-command-on-a-focusable-element><span class=secno>4.11.6.9 </span>Using the <code title=attr-accesskey>accesskey</code> attribute to define a command on a focusable element</a></ol></ol></li>
<li><a href=#using-the-accesskey-attribute-to-define-a-command-on-other-elements><span class=secno>4.11.6.9 </span>Using the <code title=attr-accesskey>accesskey</code> attribute to define a command on other elements</a></ol></ol></li>
<li><a href=#miscellaneous-elements><span class=secno>4.12 </span>Miscellaneous elements</a>
<ol>
<li><a href=#the-legend-element><span class=secno>4.12.1 </span>The <code>legend</code> element</a></li>
Expand Down Expand Up @@ -40637,18 +40637,14 @@ explain that only direct children of the <menu> matter



<h5 id=using-the-accesskey-attribute-to-define-a-command-on-a-focusable-element><span class=secno>4.11.6.9 </span><dfn title=accesskey-command>Using the <code title=attr-accesskey>accesskey</code> attribute to define a command on a focusable element</dfn></h5>
<h5 id=using-the-accesskey-attribute-to-define-a-command-on-other-elements><span class=secno>4.11.6.9 </span><dfn title=accesskey-command>Using the <code title=attr-accesskey>accesskey</code> attribute to define a command on other elements</dfn></h5>

<p>An element that is <a href=#focusable>focusable</a>, has an <a href=#assigned-access-key>assigned
access key</a>, and is neither an <code><a href=#the-a-element>a</a></code> element with an
<code title=attr-hyperlink-href><a href=#attr-hyperlink-href>href</a></code> attribute, a
<code><a href=#the-button-element>button</a></code> element, an <code><a href=#the-input-element>input</a></code> element whose
attribute is in one of the <a href=#submit-button-state title=attr-input-type-submit>Submit Button</a>, <a href=#reset-button-state title=attr-input-type-reset>Reset Button</a>, <a href=#button-state title=attr-input-type-button>Button</a>, <a href=#radio-button-state title=attr-input-type-radio>Radio Button</a>, or <a href=#checkbox-state title=attr-input-type-checkbox>Checkbox</a> states, an
<code><a href=#the-option-element>option</a></code> element with an ancestor <code><a href=#the-select-element>select</a></code>
element and either no <code title=attr-option-value><a href=#attr-option-value>value</a></code>
attribute or a <code title=attr-option-value><a href=#attr-option-value>value</a></code>
attribute that is not the empty string, a <code><a href=#the-command>command</a></code>
element, nor a <code><a href=#the-bb-element>bb</a></code> element, <a href=#concept-command title=concept-command>defines a command</a>.</p>
<p>An element that has an <a href=#assigned-access-key>assigned access key</a> <a href=#concept-command title=concept-command>defines a command</a>.</p>

<p>If one of the other sections that define elements that <a href=#concept-command title=concept-command>define commands</a> define that this
element <a href=#concept-command title=concept-command>defines a command</a>, then
that section applies to this element, and this section does
not. Otherwise, this section applies to that element.</p>

<p>The <a href=#command-facet-type title=command-facet-Type>Type</a> of the command
is "command".</p>
Expand Down Expand Up @@ -40689,8 +40685,15 @@ explain that only direct children of the <menu> matter
of the command is always false. (The command is never checked.)</p>

<p>The <a href=#command-facet-action title=command-facet-Action>Action</a> of the
command is to run the <a href=#focusing-steps>focusing steps</a> for the
element.</p>
command, if the element has a defined <a href=#activation-behavior>activation
behavior</a>, is to <a href=#run-synthetic-click-activation-steps>run synthetic click activation
steps</a> on the element. Otherwise, if the element is
<a href=#focusable>focusable</a>, the <a href=#command-facet-action title=command-facet-Action>Action</a> of the command is to run
the <a href=#focusing-steps>focusing steps</a> for the element and then to
<a href=#fire-a-click-event>fire a <code title=event-click>click</code> event</a> at
the element. Otherwise, <a href=#command-facet-action title=command-facet-Action>Action</a> of the command is just to
<a href=#fire-a-click-event>fire a <code title=event-click>click</code> event</a> at
the element.</p>

</div>

Expand Down
37 changes: 19 additions & 18 deletions source
Expand Up @@ -45688,25 +45688,17 @@ explain that only direct children of the <menu> matter



<h5><dfn title="accesskey-command">Using the <code title="attr-accesskey">accesskey</code> attribute to define a command on a focusable element</dfn></h5>
<h5><dfn title="accesskey-command">Using the <code title="attr-accesskey">accesskey</code> attribute to define a command on other elements</dfn></h5>

<p>An element that is <span>focusable</span>, has an <span>assigned
access key</span>, and is neither an <code>a</code> element with an
<code title="attr-hyperlink-href">href</code> attribute, a
<code>button</code> element, an <code>input</code> element whose
attribute is in one of the <span
title="attr-input-type-submit">Submit Button</span>, <span
title="attr-input-type-reset">Reset Button</span>, <span
title="attr-input-type-button">Button</span>, <span
title="attr-input-type-radio">Radio Button</span>, or <span
title="attr-input-type-checkbox">Checkbox</span> states, an
<code>option</code> element with an ancestor <code>select</code>
element and either no <code title="attr-option-value">value</code>
attribute or a <code title="attr-option-value">value</code>
attribute that is not the empty string, a <code>command</code>
element, nor a <code>bb</code> element, <span
<p>An element that has an <span>assigned access key</span> <span
title="concept-command">defines a command</span>.</p>

<p>If one of the other sections that define elements that <span
title="concept-command">define commands</span> define that this
element <span title="concept-command">defines a command</span>, then
that section applies to this element, and this section does
not. Otherwise, this section applies to that element.</p>

<p>The <span title="command-facet-Type">Type</span> of the command
is "command".</p>

Expand Down Expand Up @@ -45750,8 +45742,17 @@ explain that only direct children of the <menu> matter
of the command is always false. (The command is never checked.)</p>

<p>The <span title="command-facet-Action">Action</span> of the
command is to run the <span>focusing steps</span> for the
element.</p>
command, if the element has a defined <span>activation
behavior</span>, is to <span>run synthetic click activation
steps</span> on the element. Otherwise, if the element is
<span>focusable</span>, the <span
title="command-facet-Action">Action</span> of the command is to run
the <span>focusing steps</span> for the element and then to
<span>fire a <code title="event-click">click</code> event</span> at
the element. Otherwise, <span
title="command-facet-Action">Action</span> of the command is just to
<span>fire a <code title="event-click">click</code> event</span> at
the element.</p>

</div>

Expand Down

0 comments on commit a94453c

Please sign in to comment.