Click here to Skip to main content
15,912,578 members

Comments by Member 14015933 (Top 2 by date)

Member 14015933 11-Oct-18 7:48am View    
thank you again, your comment led me to the solution, this worked so far.

var try1 = true;
window.addEventListener("keydown",check,false);
function check(key) {
if (key.keyCode == "65" && try1 == true) {


c.beginPath();
c.moveTo(150,150);
c.lineTo(300,150);
c.strokeStyle ="red"; //use hex #code

c.stroke();
try1 = false;
}
Member 14015933 11-Oct-18 7:37am View    
thank for your reply, but I Tried that too didnt work :/