Re: [w3c/uievents] Should we dispatch a keypress event when spacebar is used to activate an element (#225)

> The wording in https://w3c.github.io/uievents/#legacy-uievent-event-order says that if you fire a DOMActivate (like Firefox) then it seems that you don't fire a keypress.

No, [`keypress` event should be fired for every key press of printable keys](https://w3c.github.io/uievents/#event-type-keypress) and [`Enter` key](https://github.com/w3c/uievents/issues/183) unless preceding `keydown` event is consumed. The reason is, activation may occur as a default action of `keypress` events.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/uievents/issues/225#issuecomment-469946678

Received on Wednesday, 6 March 2019 02:50:57 UTC