Fixed shortcuts

This commit is contained in:
Devine Lu Linvega 2018-11-16 12:17:17 +13:00
parent 8e283e4895
commit 2af73aea99
2 changed files with 4 additions and 2 deletions

View File

@ -58,8 +58,8 @@
DOTGRID.controller.add("default","Stroke","Arc Rev",() => { DOTGRID.tool.cast("arc_r")},"D"); // 0,0
DOTGRID.controller.add("default","Stroke","Bezier",() => { DOTGRID.tool.cast("bezier") },"F");
DOTGRID.controller.add("default","Stroke","Close",() => { DOTGRID.tool.cast("close") },"Z");
DOTGRID.controller.add("default","Stroke","Arc(full)",() => { DOTGRID.tool.cast("arc_c_full"); },"S+Shift"); // 1,1
DOTGRID.controller.add("default","Stroke","Arc Rev(full)",() => { DOTGRID.tool.cast("arc_r_full")},"D+Shift"); // 1,0
DOTGRID.controller.add("default","Stroke","Arc(full)",() => { DOTGRID.tool.cast("arc_c_full"); },"T"); // 1,1
DOTGRID.controller.add("default","Stroke","Arc Rev(full)",() => { DOTGRID.tool.cast("arc_r_full")},"Y"); // 1,0
DOTGRID.controller.add("default","Effect","Linecap",() => { DOTGRID.tool.toggle("linecap"); },"Q");
DOTGRID.controller.add("default","Effect","Linejoin",() => { DOTGRID.tool.toggle("linejoin"); },"W");

View File

@ -25,6 +25,8 @@ document.onkeyup = (e) =>
if(ch == "a"){ DOTGRID.tool.cast("line"); e.preventDefault(); }
if(ch == "s"){ DOTGRID.tool.cast("arc_c"); e.preventDefault(); }
if(ch == "d"){ DOTGRID.tool.cast("arc_r"); e.preventDefault(); }
if(ch == "t"){ DOTGRID.tool.cast("arc_c_full"); e.preventDefault(); }
if(ch == "y"){ DOTGRID.tool.cast("arc_r_full"); e.preventDefault(); }
if(ch == "f"){ DOTGRID.tool.cast("bezier"); e.preventDefault(); }
if(ch == "z"){ DOTGRID.tool.cast("close"); e.preventDefault(); }