Skip to content

Commit

Permalink
temp disable listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
sorax committed Apr 26, 2024
1 parent f61fc25 commit e9b95b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions assets/js/hooks/events/listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ export function keydown(event: KeyboardEvent) {
};

this.pushEvent("create_node", newNode);
// this.pushEvent("create_node", newNode, (node: Node, _ref: number) => {
// const newItem = createItem(node);
// item.after(newItem);
// focusItem(newItem, false);
// });
// this.pushEvent("create_node", newNode, (node: Node, _ref: number) => { });

const newItem = createItem(newNode);
item.after(newItem);
focusItem(newItem, false);
break;

case "Backspace":
Expand Down
6 changes: 3 additions & 3 deletions assets/js/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export const Hooks = {
// container.addEventListener("keyup", keyup.bind(this))

this.handleEvent("list", handleList.bind(this))
this.handleEvent("insert", handleInsert.bind(this))
this.handleEvent("update", handleUpdate.bind(this))
this.handleEvent("delete", handleDelete.bind(this))
// this.handleEvent("insert", handleInsert.bind(this))
// this.handleEvent("update", handleUpdate.bind(this))
// this.handleEvent("delete", handleDelete.bind(this))
}
}
}

0 comments on commit e9b95b9

Please sign in to comment.