preventing deletion of linefeds

Viktoras Didziulis viktoras at
Wed Dec 6 13:42:11 EST 2006

can anybody suggest a simple method to prevent users deleting linefeeds in a
text field when pressing backspace or delete keys. It should allow deletion
of any other symbol which is not "return" and should not use table object at
What should be added into the handler below? 
Chunk expression (word 2 of the selectedchunk) > 1 does not work... 
on backspaceKey 
if ??? then 
pass backspaceKey 
end if 
end backspaceKey 

More information about the Use-livecode mailing list