mirror of
https://github.com/zadam/trilium.git
synced 2025-10-21 15:49:00 +02:00
fix(hotkeys): tree not using the right API
This commit is contained in:
parent
2ef9009384
commit
97fb273e7f
@ -727,9 +727,9 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
|||||||
for (const key in hotKeys) {
|
for (const key in hotKeys) {
|
||||||
const handler = hotKeys[key];
|
const handler = hotKeys[key];
|
||||||
|
|
||||||
$(this.tree.$container).on("keydown", null, key, (evt) => {
|
shortcutService.bindElShortcut($(this.tree.$container), key, () => {
|
||||||
const node = this.tree.getActiveNode();
|
const node = this.tree.getActiveNode();
|
||||||
return handler(node, evt);
|
return handler(node, {} as JQuery.KeyDownEvent);
|
||||||
// return false from the handler will stop default handling.
|
// return false from the handler will stop default handling.
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user