Added the delete option

This commit is contained in:
Devine Lu Linvega
2016-12-31 10:47:37 -07:00
parent 2b964af3af
commit 0be4b6d9bc
3 changed files with 17 additions and 45 deletions

View File

@@ -2,7 +2,6 @@ function Keyboard()
{
this.listen = function(event)
{
console.log(dotgrid);
console.log(event.keyCode);
switch (event.key || event.keyCode) {
@@ -10,7 +9,7 @@ function Keyboard()
case 83 : dotgrid.draw_arc_c(); break;
case 68 : dotgrid.draw_line(); break;
case 70 : dotgrid.reset(); break;
case 71 : dotgrid.erase(); break;
}
}
}