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

Thierry th.douez at sunnyrevtalk.com
Wed Jan 19 06:17:03 EST 2011


Le 19 janv. 2011 à 12:02, William de Smet a écrit :

> Thanks John,
> 
> But with this script I limt the entry of the field to just one character.
> My 'problem' is dat when you keep a key pressed down more characters
> are entered.
> When you hold down the 'A' key AAAAAAAAAAA is entered.
> I wish to limit that. Just one entry of a key when being hold
> down/pressed al the time.
> 
> Any thoughts on this?

Did you tried  rawkeydown instead of keydown ?

Guess it works...

Thierry





More information about the use-livecode mailing list