- in 2sided Plugin I've added ability to use shortcut keys (like Escape) when waiting for picking a hole when the Hole Snap feature is used
- in 2sided Plugin entering in the Hole Snap feature will disable the notebook to signal that you need somehow to escape this mode
This commit is contained in:
@@ -3888,6 +3888,31 @@ class MainGUI(QtWidgets.QMainWindow):
|
||||
if key == QtCore.Qt.Key.Key_G:
|
||||
self.app.ui.grid_snap_btn.trigger()
|
||||
|
||||
# Jump to coords
|
||||
if key == QtCore.Qt.Key.Key_J:
|
||||
self.app.on_jump_to()
|
||||
elif self.app.call_source == '2_sided_tool':
|
||||
# CTRL + ALT
|
||||
if modifiers == QtCore.Qt.KeyboardModifier.ControlModifier | QtCore.Qt.KeyboardModifier.AltModifier:
|
||||
if key == QtCore.Qt.Key.Key_X:
|
||||
self.app.abort_all_tasks()
|
||||
return
|
||||
elif modifiers == QtCore.Qt.KeyboardModifier.ControlModifier:
|
||||
pass
|
||||
elif modifiers == QtCore.Qt.KeyboardModifier.ShiftModifier:
|
||||
pass
|
||||
elif modifiers == QtCore.Qt.KeyboardModifier.AltModifier:
|
||||
pass
|
||||
# NO MODIFIER
|
||||
elif modifiers == QtCore.Qt.KeyboardModifier.NoModifier:
|
||||
# Escape = Deselect All
|
||||
if key == QtCore.Qt.Key.Key_Escape or key == 'Escape':
|
||||
self.app.dblsidedtool.on_exit(cancelled=True)
|
||||
|
||||
# Grid toggle
|
||||
if key == QtCore.Qt.Key.Key_G:
|
||||
self.app.ui.grid_snap_btn.trigger()
|
||||
|
||||
# Jump to coords
|
||||
if key == QtCore.Qt.Key.Key_J:
|
||||
self.app.on_jump_to()
|
||||
|
||||
Reference in New Issue
Block a user