فهرست منبع

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

Marius Stanciu 5 سال پیش
والد
کامیت
a4b5d117b8
2فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 1 0
      CHANGELOG.md
  2. 4 0
      appEditors/AppGerberEditor.py

+ 1 - 0
CHANGELOG.md

@@ -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
 

+ 4 - 0
appEditors/AppGerberEditor.py

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