mobile keyboard swipe/autocomplete/paste

akkartik
Nov 17, 2024, 5:04 PM
Z4FZZB4OW6WPHDRGLLDH2NWOAZHGER7YKXDVCKU5SX553JTMGCRQC

Dependencies

Change contents

  • replacement in edit.lua at line 266
    [3.5396][3.5396:5426]()
    Text.text_input(State, t)
    [2.266]
    [3.5426]
    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