Toggle plot by pressing SPACE key in project panel

This commit is contained in:
Zheng, Lei
2016-06-11 06:07:28 +08:00
parent ee8e9f8f4b
commit c5f4b9474a
2 changed files with 8 additions and 0 deletions

View File

@@ -82,6 +82,11 @@ class ObjectCollection(QtCore.QAbstractListModel):
# Delete via the application to
# ensure cleanup of the GUI
self.get_active().app.on_delete()
return
if key == QtCore.Qt.Key_Space:
self.get_active().ui.plot_cb.toggle()
return
def on_mouse_down(self, event):
FlatCAMApp.App.log.debug("Mouse button pressed on list")