- GCode Editor - can not delete objects while in the Editor; can not close the Code Editor Tab except on Editor exit; activated the shortcut keys (for now only CTRL+S is working)

This commit is contained in:
Marius Stanciu
2020-08-03 22:01:42 +03:00
parent 7d47a133f6
commit ffda89f949
4 changed files with 34 additions and 1 deletions

View File

@@ -3514,6 +3514,22 @@ class MainGUI(QtWidgets.QMainWindow):
else:
self.app.inform.emit('[WARNING_NOTCL] %s' % _("Adding Tool cancelled ..."))
return
elif self.app.call_source == 'gcode_editor':
# CTRL
if modifiers == QtCore.Qt.ControlModifier:
# save (update) the current geometry and return to the App
if key == QtCore.Qt.Key_S or key == 'S':
self.app.editor2object()
return
# SHIFT
elif modifiers == QtCore.Qt.ShiftModifier:
pass
# ALT
elif modifiers == QtCore.Qt.AltModifier:
pass
# NO MODIFIER
elif modifiers == QtCore.Qt.NoModifier:
pass
elif self.app.call_source == 'measurement':
if modifiers == QtCore.Qt.ControlModifier:
pass