Advertisement
Guest User

Untitled

a guest
Mar 28th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. document.addEventListener("keydown", function(evt)
  2. {
  3.     var keyPressed = String.fromCharCode(evt.keyCode);
  4.     console.log(keyPressed);
  5.  
  6.     if(currentTool == "polygon" && isDrawingPolygon == true)
  7.     {
  8.         drawStack[drawStack.length - 1].closePolygon();
  9.         isDrawingPolygon = false;
  10.     }
  11.  
  12.    
  13.     redrawAll();
  14. }, false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement