- added a new function called by shortcut key combo CTRL+G when the current widget in Plot Area is an Code Editor. It will jump to the specified line in the text.

This commit is contained in:
Marius Stanciu
2019-12-29 04:31:46 +02:00
committed by Marius
parent 84cd2143c3
commit c79f74c1bf
3 changed files with 35 additions and 8 deletions

View File

@@ -2723,7 +2723,11 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
# Open Gerber file
if key == QtCore.Qt.Key_G:
self.app.on_fileopengerber()
widget_name = self.plot_tab_area.currentWidget().objectName()
if 'editor' in widget_name.lower():
self.app.goto_text_line()
else:
self.app.on_fileopengerber()
# Distance Tool
if key == QtCore.Qt.Key_M: