mirror of
https://github.com/zadam/trilium.git
synced 2025-10-07 22:22:44 +08:00
feat(popup_editor): add shortcut in note tree
This commit is contained in:
parent
27738acefc
commit
f5bffc38f1
1 changed files with 7 additions and 3 deletions
|
@ -244,9 +244,13 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
||||||
const notePath = treeService.getNotePath(node);
|
const notePath = treeService.getNotePath(node);
|
||||||
|
|
||||||
if (notePath) {
|
if (notePath) {
|
||||||
appContext.tabManager.openTabWithNoteWithHoisting(notePath, {
|
if (e.ctrlKey) {
|
||||||
activate: e.shiftKey ? true : false
|
appContext.triggerCommand("openInPopup", { noteIdOrPath: notePath });
|
||||||
});
|
} else {
|
||||||
|
appContext.tabManager.openTabWithNoteWithHoisting(notePath, {
|
||||||
|
activate: e.shiftKey ? true : false
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
Loading…
Add table
Reference in a new issue