From 8b2620ee0ff21c61c4c136ad5b5aeee662dba862 Mon Sep 17 00:00:00 2001 From: Comfy Org PR Bot Date: Tue, 9 Dec 2025 11:21:18 +0900 Subject: [PATCH] [backport core/1.33] fix: preserve node selection on right-click (#7262) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backport of #7162 to `core/1.33` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7262-backport-core-1-33-fix-preserve-node-selection-on-right-click-2c46d73d36508198a959dd8b2cd99fd8) by [Unito](https://www.unito.io) Co-authored-by: Johnpaul Chiwetelu <49923152+Myestery@users.noreply.github.com> Co-authored-by: GitHub Action --- .../vueNodes/composables/useNodePointerInteractions.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.ts b/src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.ts index 26d2b8a4b..d3461d4c3 100644 --- a/src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.ts +++ b/src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.ts @@ -127,6 +127,10 @@ export function useNodePointerInteractions( safeDragEnd(event) return } + + // Skip selection handling for right-click (button 2) - context menu handles its own selection + if (event.button === 2) return + const multiSelect = isMultiSelectKey(event) const nodeId = toValue(nodeIdRef)