How do I force a key to enter just one character when being pressed?
dixonja at hotmail.co.uk
Wed Jan 19 04:49:54 CST 2011
In the script of fld "text"...
on keyDown theKey
if the number of chars of fld "text" > 0 then
put theKey into fld "text"
> Hi there,
> I limit text entry of fld "text" with following code.
> on keyDown pKey
> if (the formattedHeight of fld "text" < the height of fld "text")
> pass keyDown
> end if
> end keyDown
> One thing that I want to change now is a way to force a key to enter
> just one character after being pressed/hold down.
> Any thoughts on that?
More information about the use-livecode