mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
fix: cloneNode uses Ctrl+C/V instead of right-click Clone menu
The "Clone" context menu item doesn't exist in Nodes 2.0 mode. Using Ctrl+C/Ctrl+V works in both legacy and Nodes 2.0. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -793,13 +793,14 @@ async function executeAction(
|
||||
break
|
||||
}
|
||||
case 'cloneNode': {
|
||||
await page.mouse.move(step.x, step.y)
|
||||
// Select node then Ctrl+C/Ctrl+V — works in both legacy and Nodes 2.0
|
||||
await page.mouse.click(step.x, step.y)
|
||||
await sleep(300)
|
||||
await page.mouse.click(step.x, step.y, { button: 'right' })
|
||||
await page.keyboard.press('Control+c')
|
||||
await sleep(200)
|
||||
await page.keyboard.press('Control+v')
|
||||
await sleep(500)
|
||||
await clickSubmenuItem(page, 'Clone')
|
||||
await sleep(500)
|
||||
console.warn(` Cloned node at (${step.x}, ${step.y})`)
|
||||
console.warn(` Cloned node at (${step.x}, ${step.y}) via Ctrl+C/V`)
|
||||
break
|
||||
}
|
||||
case 'copyPaste': {
|
||||
|
||||
Reference in New Issue
Block a user