Save .dot on export; Load .dot on CTRL+O / drag-n-drop

This commit is contained in:
Maik Macho
2017-11-21 22:57:16 +01:00
parent 6831781569
commit 2314e37f29
3 changed files with 70 additions and 13 deletions

View File

@@ -8,6 +8,12 @@ function Keyboard()
return;
}
// open
if(e.key == "o" && (e.ctrlKey || e.metaKey)){
dotgrid.load();
return;
}
// undo
if(e.key == "z" && (e.ctrlKey || e.metaKey)){
dotgrid.erase();