Thanks again to Origedit for bringing up these pain points.
Z4FZZB4OW6WPHDRGLLDH2NWOAZHGER7YKXDVCKU5SX553JTMGCRQC
Text.text_input(State, t)
if utf8.len(t) == 1 then
Text.text_input(State, t)
else
-- Try to support mobile keyboard swipe/autocomplete/paste as best we
-- can.
--
-- Mobile paste still works poorly. It's unreliable, often truncates
-- large pastes, and inserts newlines twice, first keypress events for
-- all characters in a paste and _then_ textinput for all characters.
Text.insert_text(State, t)
end