How about a ton of upgrades

This commit is contained in:
Devine Lu Linvega
2017-11-22 11:58:07 +13:00
parent 03c7c93bcd
commit cc62e5522b
7 changed files with 69 additions and 52 deletions

View File

@@ -2,6 +2,12 @@ function Keyboard()
{
this.listen = function(e)
{
// zoom
if(e.key == "~" || e.keyCode == 192){
dotgrid.toggle_zoom();
return;
}
// save
if(e.key == "s" && (e.ctrlKey || e.metaKey)){
dotgrid.export();