Added new shortcuts

This commit is contained in:
Devine Lu Linvega
2017-11-08 10:40:13 +13:00
parent a8c1851ace
commit 093c320eab
5 changed files with 68 additions and 11 deletions

View File

@@ -14,6 +14,12 @@ function Keyboard()
return;
}
// new
if(e.key == "n" && (e.ctrlKey || e.metaKey)){
dotgrid.clear();
return;
}
// Reset
if((e.key == "Backspace" || e.key == "Delete") && e.ctrlKey && e.shiftKey){
e.preventDefault();