- 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

@ -18,6 +18,7 @@ CHANGELOG for FlatCAM beta
- in Excellon Editor remade the utility geometry generation for Circular Drill/Slot Array to show the array updated in real time and also fixed the adding of array in negative quadrants
- Turkish language strings updated (by Mehmet Kaya)
- both for Excellon and Gerber editor fixed the direction of slots/pads when adding a circular array
- in Gerber editor added the G key shortcut to toggle the grid snapping
5.11.2020

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()