w3c / uievents

UI Events
https://w3c.github.io/uievents/
Other
147 stars 52 forks source link

Define groups of events by the interaction that caused them #311

Open npm1 opened 3 years ago

npm1 commented 3 years ago

Currently we're attempting to specify interactionId in Event Timing: https://github.com/WICG/event-timing/pull/102.

It would be helpful if we could have a way to easily talk about groups of events that are associated because they correspond to some user interaction. In particular, we are interested in the following user interactions:

Anyways, let me know if this makes sense and whether this is something you think could belong in this specification! I guess the second one might not since PointerEvents are in a separate spec?

zcorpan commented 8 months ago

Agreed, or better yet, define various user interactions and the chain of events that follow from those interactions in one place (section), separate from the event API definitions. Then the order of events would be well-defined from those definitions, and the requirements saying "event X must be before event Y but after event Z" can be removed.

Also see #361

masayuki-nakano commented 8 months ago

FYI: keydown and keyup may not be fired as a pair if it's consumed by OS/IME or active application is changed (e.g., Alt + Tab on Windows). And also when active document is changed by the browser itself.