w3c / uievents

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

Need algorithm for how events are fired for key presses #142

Open garykac opened 7 years ago

garykac commented 7 years ago

Since it's more complicated than simply:

For example, see https://github.com/whatwg/html/issues/2605 which talks about inconsistencies in how UAs treat key presses in controllers.

Also cover how key events are handled during composition.

Starting proposal (needs to be verified):

global_state: inComposition = False

domenic commented 6 years ago

It seems like we'd need some kind of loop in there to handle the case where I hold down a key and don't let it go until several characters have been entered. That should trigger at least a few input events, I'd think?

domenic commented 6 years ago

Regarding integration with the input/composition events, my instinct would be to start with one big all-together algorithm then try to refactor if possible.

garykac commented 4 years ago

Draft proposal for an algorithm to specify how keyboard, input and composition events are fired:

https://docs.google.com/document/d/1LJQvjEmWZGzVgZnofpvdkxMj1hEnLniD72XD4DLJWx4/edit?usp=sharing