Skip to content

Commit

Permalink
Ctrl+Shift+Click to open entries in a new tab in the foreground
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp <p.koenig@blockbyte.de>
  • Loading branch information
Philipp committed Mar 26, 2019
1 parent c4ea941 commit f7ce9d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"html-minifier": "^3.5.21",
"jsonminify": "^0.4.1",
"node-sass": "^4.11.0",
"npm-check-updates": "^3.1.1",
"npm-check-updates": "^3.1.2",
"read-file": "^0.2.0",
"request": "^2.88.0",
"terser": "^3.17.0",
Expand Down
3 changes: 2 additions & 1 deletion src/js/helper/sidebarEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@
data.reopenSidebar = ext.helper.model.getData("b/reopenSidebar");

if (middleClick) { // new tab -> middle click
ext.helper.utility.openUrl(data, "newTab", config.newTab === "background" && config.linkAction === "newtab"); // open always in background except a normal click opens them in new tab in the background
const active = opts.shiftKey || (config.newTab === "background" && config.linkAction === "newtab");
ext.helper.utility.openUrl(data, "newTab", active); // open in foreground when a normal click opens the tab in new tab in the background or while pressing 'shift' always in the foreground
} else if (config.linkAction === "newtab") { // new tab -> normal click
ext.helper.utility.openUrl(data, "newTab", config.newTab === "foreground");
} else { // current tab
Expand Down

0 comments on commit f7ce9d5

Please sign in to comment.