barelyhuman / preact-native

experimental renderer for preact to work with react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

improve keyboard handling by queuing and drafting a keyboard text change request

barelyhuman opened this issue · comments

Currently due to the type of events passed from the React Native SDK, we only have either the keys that are being pressed or the original text during focus and blur.

We don't have a way to get if the text was modified over time (by autocomplete, autocorrect) or was replaced by selection, which aren't passed as events (at least not from the simulator)

which makes it hard to write an event based keyboard handler and so needs the focus and blur handlers to find the value

React Native handles this somehow, and we don't have the full idea of it but need to figure that out.