mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-20 03:13:30 +00:00
Don't paste nodes when target is a textarea or a text box.
This commit is contained in:
parent
2d9d3ca38b
commit
f368e5ac7d
@ -717,6 +717,10 @@ export class ComfyApp {
|
|||||||
this.loadGraphData(workflow);
|
this.loadGraphData(workflow);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if (e.target.type === "text" || e.target.type === "textarea") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Litegraph default paste
|
// Litegraph default paste
|
||||||
this.canvas.pasteFromClipboard();
|
this.canvas.pasteFromClipboard();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user