Skip to content

Commit

Permalink
Add Alt + Right Click for Sv right click menu (#5185)
Browse files Browse the repository at this point in the history
* Update nodeview_keymaps.py

* update documentation
  • Loading branch information
vicdoval authored Jan 8, 2025
1 parent 2faf3da commit 10bdda6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/user_interface/shortcuts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ This is a collection of shortcuts useful in the Sverchok node tree, some are Ble

**Right Click** - Access to Sverchok Right Click Menu

**Alt + Right Click** - Access to Sverchok Right Click Menu

**Shift + P** - on a node in Node Editor - open Load / Save Preset menu for this node

**Ctrl+Z** - Zoom to selected node and vice versa
Expand Down
5 changes: 5 additions & 0 deletions ui/nodeview_keymaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ def add_keymap():
kmi.properties.name = "NODEVIEW_MT_sv_rclick_menu"
nodeview_keymaps.append((km, kmi))

# Alt + Right Click | show custom menu (to avoid conflict with the Blender right click menu)
kmi = km.keymap_items.new('wm.call_menu', 'RIGHTMOUSE', 'RELEASE', alt=True)
kmi.properties.name = "NODEVIEW_MT_sv_rclick_menu"
nodeview_keymaps.append((km, kmi))

kmi = km.keymap_items.new('wm.call_menu', 'P', 'PRESS', shift=True)
kmi.properties.name = "SV_MT_LoadPresetMenu"
nodeview_keymaps.append((km, kmi))
Expand Down

0 comments on commit 10bdda6

Please sign in to comment.