How to get at the same time two codes when i have pressed two keys on the keyboard?
In it, I only get one keyCode...
document.onkeydown = function(e)
{ var key = e.keyCode ? e.keyCode : e.which;
text.innerHTML += key; };
How to get at the same time two codes when i have pressed two keys on the keyboard?
In it, I only get one keyCode...
document.onkeydown = function(e)
{ var key = e.keyCode ? e.keyCode : e.which;
text.innerHTML += key; };
look here JavaScript multiple keys pressed at once
http://jsfiddle.net/vor0nwe/mkHsU/