w3c / uievents

UI Events
https://w3c.github.io/uievents/
Other
145 stars 51 forks source link

Specify typical default scroll action for keydown events with Arrow, PageUp, PageDown, Home, End keys #325

Open flackr opened 2 years ago

flackr commented 2 years ago

In section 5.6.4.1. keydown the default action of a keydown is stated to depend on the key. Default actions are stated for character keys, text composition, Tab, and Enter. In most browsers, the typical default action of keys PageUp, PageDown, ArrowUp, ArrowRight, ArrowDown, ArrowLeft, Home, and End is to perform a scroll by various magnitudes in various directions, however this is not mentioned in the spec.

I think it might be useful to specify the key scrolling behavior and targeting as we have a fairly common agreed upon behavior in most browsers, and it would give us a place to resolve any potential interop differences between them.

Notably, in section 5.4.2.1. wheel, the spec states that the typical default action of a wheel event is to scroll the document.