Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.addEventListener("keydown", function(evt)
- {
- var keyPressed = String.fromCharCode(evt.keyCode);
- console.log(keyPressed);
- if(currentTool == "polygon" && isDrawingPolygon == true)
- {
- drawStack[drawStack.length - 1].closePolygon();
- isDrawingPolygon = false;
- }
- redrawAll();
- }, false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement