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]
Control of Text Fields
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 4
- Joined: Sat Apr 08, 2006 9:52 am
- Contact:
-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
Re: Control of Text Fields
Why worry: replying to oneself is a well-known feature round these parts. 
