Skip to content

Commit 74f72f1

Browse files
authored
Merge pull request #977 from RedHope/fix/ctrlplusclick
fix(#976): fix for ctrl + click opening a new instance on windows.
2 parents c634435 + 10f9d07 commit 74f72f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/public/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ app.run(function (
125125

126126
// disable cmd (ctrl) + click and middle mouse click to open a new tab/page
127127
document.addEventListener('click', function (e) {
128-
if (e.metaKey || e.which === 2) {
128+
if (e.metaKey || e.ctrlKey || e.which === 2) {
129129
e.preventDefault();
130130
}
131131
}, false);

0 commit comments

Comments
 (0)