Hello there,
I'm running into a minor problem. I want to execute an onKeyUp action after a short delay when a key is released. So for example when the user gets his finger off the "y" button, I want to execute an action related to that "Y" after 1 second.
BUT: I want to execute it only once. With the script I now have, 10 timers start running when the user types in 10 letters, which means 10 actions are executed, each after 1 second after releasing a key, while I only want to execute 1 action.
So when the user types in "hello", an action is executed for each letter he typed in. What I want is the timer to reset after he types a new letter within a second after he types a letter. So when he types "hello" within like a second, only one action is executed. This script:
setTimeout(function(){
actions..
}, 1000);
Keeps resetting the timer over and over. Any suggestions?