Deactivate undo/redo when textarea is active.

This commit is contained in:
Bruno Madeira
2023-10-04 11:53:54 +01:00
parent ee02e08b0e
commit c65dfeb9a2
+3
View File
@@ -79,6 +79,9 @@ class WorkflowHistory {
}
if (event.ctrlKey) {
if(app.graph.list_of_graphcanvas[0].getCanvasWindow().document.activeElement.nodeName.toLowerCase() == "textarea")
return; // ignore when editing text
if (event.key === "z") {
workflowHistory.undo(app);
workflowHistory.prevKey = "z";