From 10bdda67ed583e1f70aad4d4f0a76404848d47ea Mon Sep 17 00:00:00 2001 From: Victor Doval <10011941+vicdoval@users.noreply.github.com> Date: Wed, 8 Jan 2025 14:19:15 +0100 Subject: [PATCH] Add Alt + Right Click for Sv right click menu (#5185) * Update nodeview_keymaps.py * update documentation --- docs/user_interface/shortcuts.rst | 2 ++ ui/nodeview_keymaps.py | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/docs/user_interface/shortcuts.rst b/docs/user_interface/shortcuts.rst index 97ec14b603..76b129b678 100644 --- a/docs/user_interface/shortcuts.rst +++ b/docs/user_interface/shortcuts.rst @@ -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 diff --git a/ui/nodeview_keymaps.py b/ui/nodeview_keymaps.py index 77b2d43dc3..ae5f78245d 100644 --- a/ui/nodeview_keymaps.py +++ b/ui/nodeview_keymaps.py @@ -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))