From 97fb273e7f8015748dbd66156e12b081eba4ec1c Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 30 Jul 2025 14:15:29 +0300 Subject: [PATCH] fix(hotkeys): tree not using the right API --- apps/client/src/widgets/note_tree.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/note_tree.ts b/apps/client/src/widgets/note_tree.ts index 3b9367f1f..d6dd4d733 100644 --- a/apps/client/src/widgets/note_tree.ts +++ b/apps/client/src/widgets/note_tree.ts @@ -727,9 +727,9 @@ export default class NoteTreeWidget extends NoteContextAwareWidget { for (const key in hotKeys) { const handler = hotKeys[key]; - $(this.tree.$container).on("keydown", null, key, (evt) => { + shortcutService.bindElShortcut($(this.tree.$container), key, () => { const node = this.tree.getActiveNode(); - return handler(node, evt); + return handler(node, {} as JQuery.KeyDownEvent); // return false from the handler will stop default handling. }); }