reintroduced dialog check to avoid undesirable undo behavior; this behavior was left out when merging #4.

This commit is contained in:
Bruno Madeira
2023-11-20 17:05:00 +00:00
parent 01ef2bce8f
commit 40165e0001
+5
View File
@@ -132,6 +132,11 @@ class WorkflowHistory {
workflowHistory.repKeyCount=0;
}
if (app.graph.list_of_graphcanvas[0].getCanvasWindow().document.activeElement.nodeName.toLowerCase() == "textarea")
return; // ignore when editing text
if (document.getElementsByClassName("graphdialog").length > 0)
return; // ignore when editing property via dialog
/**
* @description
* keyCombination records the key combination pressed by the user, so we can detect and match the corresponding operation.