diff --git a/desktop/sources/index.html b/desktop/sources/index.html index 98dd680..cfdc5df 100644 --- a/desktop/sources/index.html +++ b/desktop/sources/index.html @@ -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"); diff --git a/web/events.js b/web/events.js index c9b3d87..d84d28c 100644 --- a/web/events.js +++ b/web/events.js @@ -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(); }