- fixed the Set To Origin function when Escape was clicked

This commit is contained in:
Marius Stanciu
2019-02-24 01:57:47 +02:00
committed by Marius S
parent 945196a44c
commit 4d8eefb92d
3 changed files with 8 additions and 1 deletions

View File

@@ -1864,6 +1864,11 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
# Escape = Deselect All
if key == QtCore.Qt.Key_Escape or key == 'Escape':
self.app.on_deselect_all()
# try to disconnect the slot from Set Origin
try:
self.app.plotcanvas.vis_disconnect('mouse_press', self.app.on_set_zero_click)
except:
pass
self.app.inform.emit("")
# Space = Toggle Active/Inactive