Page 3 of 3

Re: Control of Text Fields

Posted: Sun Nov 14, 2021 10:25 am
by alextweedly
Replying to myself ...

No - that's the wrong version you pasted in ... it should have been

A simple fix is to do
[code]
on mouseup
if (word 2 of the selectedChunk) <= (word 4 of the selectedChunk) then -- there is a selection
type space
end if
delete char (word 4 of the selectedChunk) of the focusedObject -- remove that space
end mouseUp
[/code]

Re: Control of Text Fields

Posted: Sun Nov 14, 2021 6:44 pm
by richmond62
Why worry: replying to oneself is a well-known feature round these parts. 8)