3 ms·
We listen to a few typing related events and do some computation from here: keydown, input, beforeinput. Android, contrary to any other device, mostly relies on
by zurfyx 4y ago
We listen to a few typing related events and do some computation from here: keydown, input, beforeinput. Android, contrary to any other device, mostly relies on composition so Lexical makes sure to handle and flush these events accordingly.
If you're curious, this is where it all starts - https://github.com/facebook/lexical/blob/main/packages/lexical/src/LexicalEvents.js https://github.com/facebook/lexical/blob/main/packages/lexic...