preventing deletion of linefeds
JimAultWins at yahoo.com
Wed Dec 6 13:31:40 CST 2006
On 12/6/06 10:42 AM, "Viktoras Didziulis" <viktoras at ekoinf.net> wrote:
> 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
Normally I think this is done using a combo box so that one line at a time
is edited and the list is select-only (list behavior)
If you do try to capture key strokes, you need to decide how would you stop
multi-line user select, then a single delete... or
multi-line user select, then pressing another key to replace 3 lines with
Then there is cut, copy, paste...
More information about the use-livecode