mirror of
https://github.com/zadam/trilium.git
synced 2025-01-16 20:21:43 +08:00
open links in new tab without activation
This commit is contained in:
parent
e5155130e7
commit
3ab2b41e8c
3 changed files with 0 additions and 4 deletions
|
@ -78,7 +78,6 @@ function goToLink(e) {
|
|||
if (notePath) {
|
||||
if ((e.which === 1 && e.ctrlKey) || e.which === 2) {
|
||||
const tabContext = appContext.tabManager.openEmptyTab();
|
||||
appContext.tabManager.activateTab(tabContext.tabId);
|
||||
tabContext.setNote(notePath);
|
||||
}
|
||||
else if (e.which === 1) {
|
||||
|
@ -142,7 +141,6 @@ $(document).on('mousedown', '.note-detail-text a', function (e) {
|
|||
if (notePath) {
|
||||
const tabContext = appContext.tabManager.openEmptyTab();
|
||||
tabContext.setNote(notePath);
|
||||
appContext.tabManager.activateTab(tabContext.tabId);
|
||||
}
|
||||
else {
|
||||
const address = $link.attr('href');
|
||||
|
|
|
@ -109,7 +109,6 @@ class TreeContextMenu {
|
|||
|
||||
if (command === 'openInTab') {
|
||||
const tabContext = appContext.tabManager.openEmptyTab();
|
||||
appContext.tabManager.activateTab(tabContext.tabId);
|
||||
tabContext.setNote(notePath);
|
||||
}
|
||||
else if (command === "insertNoteAfter") {
|
||||
|
|
|
@ -84,7 +84,6 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
|||
const tabContext = appContext.tabManager.openEmptyTab();
|
||||
const notePath = treeService.getNotePath(node);
|
||||
tabContext.setNote(notePath);
|
||||
appContext.tabManager.activateTab(tabContext.tabId);
|
||||
}
|
||||
else {
|
||||
node.setActive();
|
||||
|
|
Loading…
Reference in a new issue