@elicdavis/node-flow 0.1.18 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -6874,12 +6874,25 @@ var NodeFlowGraph = class {
6874
6874
  this.#pasteCallbacks.forEach((callback) => callback(position));
6875
6875
  }
6876
6876
  #deleteKey(e) {
6877
- return e.code === "Delete" || e.code === "Backspace" || e.key === "Delete" || e.key === "Backspace";
6877
+ return e.code === "Delete" || e.key === "Delete";
6878
6878
  }
6879
6879
  #keyDown(e) {
6880
6880
  if (document.activeElement) {
6881
6881
  if (["INPUT", "TEXTAREA"].includes(document.activeElement.tagName)) return;
6882
6882
  }
6883
+ if (this.#openQuickMenu) {
6884
+ if (e.code === "Escape") {
6885
+ this.#openQuickMenu = null;
6886
+ return;
6887
+ }
6888
+ if (e.code === "Enter") {
6889
+ this.#openQuickMenu.Menu.execute();
6890
+ this.#openQuickMenu = null;
6891
+ return;
6892
+ }
6893
+ this.#openQuickMenu.Menu.keyboardEvent(e);
6894
+ return;
6895
+ }
6883
6896
  if (this.#deleteKey(e)) {
6884
6897
  if (this.#mainNodeSubsystem.getSelectedNodes().length > 0) {
6885
6898
  e.preventDefault();
@@ -6904,19 +6917,6 @@ var NodeFlowGraph = class {
6904
6917
  return;
6905
6918
  }
6906
6919
  }
6907
- if (this.#openQuickMenu) {
6908
- if (e.code === "Escape") {
6909
- this.#openQuickMenu = null;
6910
- return;
6911
- }
6912
- if (e.code === "Enter") {
6913
- this.#openQuickMenu.Menu.execute();
6914
- this.#openQuickMenu = null;
6915
- return;
6916
- }
6917
- this.#openQuickMenu.Menu.keyboardEvent(e);
6918
- return;
6919
- }
6920
6920
  const spacePressed = e.key == " " || e.code == "Space";
6921
6921
  if (!spacePressed) {
6922
6922
  return;
@@ -7115,6 +7115,9 @@ var NodeFlowGraph = class {
7115
7115
  connectNodes(nodeOut, outPort, nodeIn, inPort) {
7116
7116
  return this.#mainNodeSubsystem.connectNodes(nodeOut, outPort, nodeIn, inPort);
7117
7117
  }
7118
+ clearNodeInputConnection(node, index) {
7119
+ this.#mainNodeSubsystem.clearNodeInputConnection(node, index);
7120
+ }
7118
7121
  addNode(node) {
7119
7122
  this.#mainNodeSubsystem.addNode(node);
7120
7123
  }