Trapping multiple keystrokes

J. Landman Gay jacque at
Fri Dec 1 15:03:11 EST 2017

On 12/1/17 11:52 AM, Kaveh Bazargan via use-livecode wrote:
> I have a field with a number in it. when focused, I want the value to go up
> and down with the up/down arrow keys. The trouble is that if I keep the key
> down, it traps multiple keydown messages that continue after the key is
> released.
> How can I ensure that message are terminated as soon as arrow key is
> released?

What handler are you using? I just did a test with rawKeyDown and 
arrowKey and they all stop when I release the key. (Though arrowkey 
seems to be ignoring left and right keys in LC 9 for some reason.)

Jacqueline Landman Gay         |     jacque at
HyperActive Software           |

More information about the use-livecode mailing list