Text Box dilemna

Bill Vlahos bvlahos at mac.com
Tue Dec 23 16:58:16 EST 2003


If a text field is not Focusable (check box unchecked) then you can 
select and copy any text that is there but not cut or delete it. This 
combined with a keyUp for the delete key would let you programatically 
make changes.

Bill Vlahos

On Dec 23, 2003, at 11:49 AM, Stewart Lynch wrote:

> I need to find a way to trap and stop anyone from deleting selected 
> text.
> For example, in a text field, if one selects text and hits any key
> (including delete, return, fwd delete or enter),  I need the the 
> keypress
> to be ignored and the selection disappear.
> IE, I only want people to be able to hit the backspace (delete) key and
> delete one character at a time and only if there is no text selected at
> the time of pressing the key.  I need to stop it before it happens, or 
> if
> it does happen, undo it immediately without user intervention.
>
> Any suggestions?
>
>
> *******************************************
> ........
> :  o/  : Stewart Lynch
> : <|   : Director of Instruction, Technology and Information Services
> : / >  : Richmond School District



More information about the use-livecode mailing list