PDA

View Full Version : why keyup fires twice?



Dumbledore
28 Oct 2010, 10:57 PM
Hi,

i use following code:


Ext.getDoc().on('keyup',function(e, el) {
console.log(e.getCharCode());
});

Why fires each key twice?

Bye, Dumbledore

Animal
29 Oct 2010, 12:58 AM
It doesn't.

It would if you called that code twice.

Dumbledore
31 Oct 2010, 3:05 AM
uups... i change my IDE and control d ist not delete... itīs insert the same line twice...

sorry...