How do I force a key to enter just one character when being pressed?

DunbarX at aol.com DunbarX at aol.com
Wed Jan 19 11:08:33 EST 2011


Try this in the field script:

on keyDown var
    if the stillPressed of me = "true" then exit to top
    put var after me
    set the currentText of me to me
    set the stillPressed of me to "true"
end keyDown

on keyup
   set the stillPressed of me to "false"
end keyup



More information about the use-livecode mailing list