JQuery: Function call on keydown but get value on keyup?

You can't wait for events, as event handlers only start while other code is not running, so you would have to store the information for that key somewhere and use it in the keyup event Note that each keydown eventually gets a keyup but not necessarily in the same order, e.g. : shift down space down shift up K down space up K up So, if you keep information from the keydown event, you would have to store it separately for each key Consider also using the keypress event that happens when a keypress produces a character, which also happens when keys are repeating when you hold it down.

You can't wait for events, as event handlers only start while other code is not running, so you would have to store the information for that key somewhere and use it in the keyup event. Note that each keydown eventually gets a keyup, but not necessarily in the same order, e.g. : shift down space down shift up K down space up K up So, if you keep information from the keydown event, you would have to store it separately for each key. Consider also using the keypress event that happens when a keypress produces a character, which also happens when keys are repeating when you hold it down.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions