benilla-re systems structs docs

CSimpleEditBox::Insert

function · ui · primitive

Address
0x77bee0 · 737 bytes, up to 0x77c1c0
Meaning
Inserts text at the cursor under the numeric filter and the byte and letter limits, running the scripts
Confidence
verified, proof one
Finding
ui/editbox#inserting-text
Test
ui::editbox_markup_insert_refusal_range

Finding: Inserting text in ui: EditBox

An insertion inside an escape or a link is refused. Otherwise it first deletes the selection. In a numeric box a text with any character outside 0 to 9 is then refused whole, so typing a letter over a selection only deletes it. The text is spliced in at the cursor, which moves past it. Then the byte limit and the letter limit each trim characters from the end. With scripts on, it runs OnChar with the inserted text, and OnSpacePressed once when the text holds a space.

The derivation is in the doc.

Callers 5

Callees 12

Calls and jumps by a bare address, from tables/calls.tsv.