mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-14 23:42:35 +08:00
Don't paste nodes when target is a textarea or a text box.
This commit is contained in:
parent
61ec84fb12
commit
76e4a0e072
@ -717,8 +717,12 @@ 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