[w3c/uievents] Fire an event on caret position change (#111)

For a syntax highlighter [I'd like to get the current caret position while pressing keys on the keyboard](http://stackoverflow.com/q/36978192/432681).

I tried to use the `keydown` event and the legacy `keypress` event, but they are fired continuously **before** the caret position changes. And the `keyup` event is only fired once after the key is released. Besides that there is also the `input` event, though that's just fired on text input and not when the text cursor changes.

So, what is missing is an event that is either

1. fired continuously while a key is pressed like `input` but even when no input happens like `keydown`, or
2. fired everytime right after the caret position changed.

I slightly prefer the second solution, because it allows to get the caret position even on other input types like mouse events.

Sebastian

-- 
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/111

Received on Sunday, 23 October 2016 12:58:19 UTC