add onblur handler to tool fields to regenerate more intuitively

This commit is contained in:
Stewart Allen 2021-01-04 20:47:55 -05:00
commit c8d974718f
2 changed files with 20 additions and 3 deletions

View file

@ -1979,8 +1979,6 @@
}
SPACE.onEnterKey([
// UI.layerSpan, function() { API.show.slices() },
// UI.layerID, function() { API.show.layer(UI.layerID.value) },
UI.scaleX, selectionScale,
UI.scaleY, selectionScale,
UI.scaleZ, selectionScale,
@ -1999,6 +1997,16 @@
$('rot_z'), selectionRotate
]);
UC.onBlur([
UI.toolName,
UI.toolNum,
UI.toolFluteDiam,
UI.toolFluteLen,
UI.toolShaftDiam,
UI.toolShaftLen,
UI.toolTaperTip,
], updateTool);
UI.toolMetric.onclick = updateTool;
UI.toolType.onchange = updateTool;
// default show gcode pre