open links in new tab without activation

This commit is contained in:
zadam 2020-02-29 15:00:35 +01:00
parent e5155130e7
commit 3ab2b41e8c
3 changed files with 0 additions and 4 deletions

View file

@ -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');

View file

@ -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") {

View file

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