I cannot reproduce the problem, I cannot find any events in Keyup, no matter how long I hold the key.
This method listens for key start, runs some code, and waits for keystrokes before listening for another keystroke.
A warning is triggered only when a key is pressed.
var A=[], who=
who.onkeydown= who.onkeyup= function(e){
e=window.event || e;
var t= e.type, target= e.target || e.srcElement;
A.push(t);
if(t== 'keydown'){
target.onkeydown= '';
}
else if(t== 'keyup'){
target.onkeydown= arguments.callee;
alert(A)
}
}
source
share