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,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();