0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-21 17:07:55 +01:00

some extra keyboard shortcuts

This commit is contained in:
Rick Companje 2013-12-05 11:50:02 +01:00
parent b85d3244c9
commit ff6df2f041
2 changed files with 8 additions and 2 deletions

View File

@ -10,6 +10,7 @@ function initKeyboard() {
switch (ch) {
case 'c': clearDoodle(); break;
case 'n': clearDoodle(); break;
case 'p': print(); break;
case 'u': oopsUndo(); break;
case 'e': settingsWindow.downloadGcode(); break;
@ -18,8 +19,11 @@ function initKeyboard() {
case 'C': drawCircle(250,180,80,64); break; //x,y,r,res
case 'T': drawCircle(250,180,80,3); break; //triangle
case 'X': drawCircle(250,180,80,6); break; //hexagon
case 'H': previewUp(true); break;
case 'h': previewDown(true); break;
case 'h': previewUp(true); break;
case 'H': previewDown(true); break;
case 's': saveSketch(); break;
case 'L': nextDoodle(); break;
case 'l': prevDoodle(); break;
case '[': previewTwistLeft(); break;
case ']': previewTwistRight(); break;
case '\'': resetTwist(); break;

View File

@ -145,6 +145,8 @@ function generate_gcode() {
for (var layer = 0; layer < layers; layer++) {
gcode.push(";LAYER:"+layer);
var p = JSON.parse(JSON.stringify(points)); // [].concat(points);
if (p.length < 2) return;