diff --git a/README.md b/README.md index 3db5c348..5d777a83 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,10 @@ CAD program, and create G-Code for Isolation routing. ================================================= +23.08.2019 + +- in Tool Cutout for the manual gaps, right mouse button click will exit from the action of adding gaps + 22.08.2019 - added ability to turn ON/OFF the detachable capability of the tabs in Notebook through a context menu activated by right mouse button click on the Notebook header diff --git a/flatcamTools/ToolCutOut.py b/flatcamTools/ToolCutOut.py index ac9711a7..9674b36f 100644 --- a/flatcamTools/ToolCutOut.py +++ b/flatcamTools/ToolCutOut.py @@ -782,6 +782,19 @@ class CutOut(FlatCAMTool): self.app.geo_editor.tool_shape.clear(update=True) self.app.geo_editor.tool_shape.enabled = False self.gapFinished.emit() + # if RMB then we exit + elif event.button == 2: + self.app.plotcanvas.vis_disconnect('key_press', self.on_key_press) + self.app.plotcanvas.vis_disconnect('mouse_move', self.on_mouse_move) + self.app.plotcanvas.vis_disconnect('mouse_release', self.doit) + self.app.plotcanvas.vis_connect('key_press', self.app.ui.keyPressEvent) + self.app.plotcanvas.vis_connect('mouse_press', self.app.on_mouse_click_over_plot) + self.app.plotcanvas.vis_connect('mouse_release', self.app.on_mouse_click_release_over_plot) + self.app.plotcanvas.vis_connect('mouse_move', self.app.on_mouse_move_over_plot) + + # Remove any previous utility shape + self.app.geo_editor.tool_shape.clear(update=True) + self.app.geo_editor.tool_shape.enabled = False def on_manual_cutout(self, click_pos): name = self.man_object_combo.currentText()