- in Gerber editor added the G key shortcut to toggle the grid snapping

This commit is contained in:
Marius Stanciu
2020-11-06 21:37:19 +02:00
committed by Marius
parent d6b2ed5d40
commit a4b5d117b8
2 changed files with 5 additions and 0 deletions

View File

@@ -1449,6 +1449,10 @@ class TrackEditorGrb(ShapeToolEditorGrb):
self.draw_app.draw_utility_geometry(geo_shape=geo)
return _("Backtracked one point ...")
# Jump to coords
if key == QtCore.Qt.Key_G or key == 'G':
self.draw_app.app.ui.grid_snap_btn.trigger()
# Jump to coords
if key == QtCore.Qt.Key_J or key == 'J':
self.draw_app.app.on_jump_to()