mirror of
https://github.com/zadam/trilium.git
synced 2025-10-05 04:56:29 +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);
|
||||
|
||||
if (notePath) {
|
||||
appContext.tabManager.openTabWithNoteWithHoisting(notePath, {
|
||||
activate: e.shiftKey ? true : false
|
||||
});
|
||||
if (e.ctrlKey) {
|
||||
appContext.triggerCommand("openInPopup", { noteIdOrPath: notePath });
|
||||
} else {
|
||||
appContext.tabManager.openTabWithNoteWithHoisting(notePath, {
|
||||
activate: e.shiftKey ? true : false
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
e.stopPropagation();
|
||||
|
|
Loading…
Add table
Reference in a new issue