feat(popup_editor): add shortcut in note tree

This commit is contained in:
Elian Doran 2025-07-10 19:54:51 +03:00
parent 27738acefc
commit f5bffc38f1
No known key found for this signature in database

View file

@ -244,10 +244,14 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
const notePath = treeService.getNotePath(node); const notePath = treeService.getNotePath(node);
if (notePath) { if (notePath) {
if (e.ctrlKey) {
appContext.triggerCommand("openInPopup", { noteIdOrPath: notePath });
} else {
appContext.tabManager.openTabWithNoteWithHoisting(notePath, { appContext.tabManager.openTabWithNoteWithHoisting(notePath, {
activate: e.shiftKey ? true : false activate: e.shiftKey ? true : false
}); });
} }
}
e.stopPropagation(); e.stopPropagation();
e.preventDefault(); e.preventDefault();