Skip to content

Commit

Permalink
Update the list of activation triggering input events
Browse files Browse the repository at this point in the history
* Remove all high-level events that follows a low-level event.
* Add missing low-level events that are known to be required.
* Add keyboard events, in a conditional manner.

Fixes #3849.
  • Loading branch information
mustaqahmed committed Nov 1, 2021
1 parent e6f3087 commit 56071d6
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -3106,8 +3106,10 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<p>The following features are defined in <cite>Pointer Events</cite>: <ref spec=POINTEREVENTS></p>

<ul class="brief">
<li><dfn data-x-href="https://w3c.github.io/pointerevents/#pointerevent-interface"><code>PointerEvent</code></dfn> interface</li>
<li>The <dfn data-x-href="https://w3c.github.io/pointerevents/#pointerevent-interface"><code>PointerEvent</code></dfn> interface</li>
<li>The <code>PointerEvent</code> interface's <dfn data-x-href="https://w3c.github.io/pointerevents/#dom-pointerevent-pointertype"><code>pointerType</code></dfn> attribute</li>
<li><dfn data-x-href="https://w3c.github.io/pointerevents/#dfn-fire-a-pointer-event">fire a pointer event</dfn></li>
<li><dfn data-x="event-pointerdown" data-x-href="https://w3c.github.io/pointerevents/#the-pointerdown-event"><code>pointerdown</code></dfn> event</li>
<li><dfn data-x="event-pointerup" data-x-href="https://w3c.github.io/pointerevents/#the-pointerup-event"><code>pointerup</code></dfn> event</li>
<li><dfn data-x="event-pointercancel" data-x-href="https://w3c.github.io/pointerevents/#the-pointercancel-event"><code>pointercancel</code></dfn> event</li>
</ul>
Expand Down Expand Up @@ -74236,20 +74238,14 @@ END:VCARD</pre>
data-x="dom-Event-type">type</code> is one of:</p>

<ul class="brief">
<li><code data-x="event-change">change</code></li>
<li><code data-x="event-click">click</code></li>
<li><code data-x="event-contextmenu">contextmenu</code></li>
<li><code data-x="event-dblclick">dblclick</code></li>
<li><code data-x="event-mouseup">mouseup</code></li>
<li><code data-x="event-pointerup">pointerup</code></li>
<li><code data-x="event-reset">reset</code></li>
<li><code data-x="event-submit">submit</code></li>
<li><code data-x="event-touchend">touchend</code></li>
<li><code data-x="event-keydown">keydown</code>, provided the key is neither the <kbd>Esc</kbd> key nor a
shortcut key reserved by the user agent.</li>
<li><code data-x="event-mousedown">mousedown</code>.</li>
<li><code data-x="event-pointerdown">pointerdown</code>, provided the event's <code>pointerType</code> is "mouse".</li>
<li><code data-x="event-pointerup">pointerup</code>, provided the event's <code>pointerType</code> is not "mouse".</li>
<li><code data-x="event-touchend">touchend</code>.</li>
</ul>

<p class="XXX">The event set is inconsistent across major browsers. See <a
href="https://github.com/whatwg/html/issues/3849">issue #3849</a>.</p>

<p><span data-x="activation consuming API">Activation consuming APIs</span> defined in this and
other specifications can <dfn export>consume user activation</dfn> by performing the following
steps, given a <code>Window</code> <var>W</var>:</p>
Expand Down

0 comments on commit 56071d6

Please sign in to comment.