- added shortcut key 'J' (jump to location) in Editors and added an icon to the dialog popup window
This commit is contained in:
@@ -1047,6 +1047,10 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
||||
<td height="20"><strong>I</strong></td>
|
||||
<td> Paint Tool</td>
|
||||
</tr>
|
||||
<tr height="20">
|
||||
<td height="20"><strong>J</strong></td>
|
||||
<td> Jump to Location (x, y)</td>
|
||||
</tr>
|
||||
<tr height="20">
|
||||
<td height="20"><strong>K</strong></td>
|
||||
<td> Toggle Corner Snap</td>
|
||||
@@ -1068,7 +1072,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
||||
<td> Draw a Path</td>
|
||||
</tr>
|
||||
<tr height="20">
|
||||
<td height="20">R</td>
|
||||
<td height="20"><strong>R</strong></td>
|
||||
<td> Draw Rectangle</td>
|
||||
</tr>
|
||||
<tr height="20">
|
||||
@@ -1134,6 +1138,10 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
||||
<td height="20"><strong>D</strong></td>
|
||||
<td> Add Drill</td>
|
||||
</tr>
|
||||
<tr height="20">
|
||||
<td height="20"><strong>J</strong></td>
|
||||
<td> Jump to Location (x, y)</td>
|
||||
</tr>
|
||||
<tr height="20">
|
||||
<td height="20"><strong>M</strong></td>
|
||||
<td> Move Drill(s)</td>
|
||||
@@ -1940,6 +1948,10 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
||||
if key == QtCore.Qt.Key_I or key == 'I':
|
||||
self.app.geo_editor.select_tool('paint')
|
||||
|
||||
# Jump to coords
|
||||
if key == QtCore.Qt.Key_J or key == 'J':
|
||||
self.app.on_jump_to()
|
||||
|
||||
# Corner Snap
|
||||
if key == QtCore.Qt.Key_K or key == 'K':
|
||||
self.app.geo_editor.on_corner_snap()
|
||||
@@ -2162,6 +2174,10 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
||||
self.app.ui.grid_snap_btn.trigger()
|
||||
return
|
||||
|
||||
# Jump to coords
|
||||
if key == QtCore.Qt.Key_J or key == 'J':
|
||||
self.app.on_jump_to()
|
||||
|
||||
# Corner Snap
|
||||
if key == QtCore.Qt.Key_K or key == 'K':
|
||||
self.app.exc_editor.launched_from_shortcuts = True
|
||||
|
||||
Reference in New Issue
Block a user