mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
fix(hotkeys): tree not using the right API
This commit is contained in:
@@ -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.
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user