Skip to content

Commit 32a42a3

Browse files
authored
Update codeit-autolinker.js
1 parent 9ecb1d9 commit 32a42a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/plugins/codeit-autolinker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
var isMac = navigator.platform.indexOf('Mac') > -1;
6868

6969
env.attributes.href = href.replaceAll('\'','').replaceAll('"','').replaceAll('`','');
70-
env.attributes.onclick = 'if (event.ctrlKey || event.metaKey) { event.preventDefault(); window.open(this.href, "_blank") }';
71-
env.attributes.title = isMac ? '⌘ + click to open link' : 'Ctrl + click to open link';
70+
env.attributes.onclick = 'if ((event.ctrlKey || event.metaKey) && event.shiftKey) { event.preventDefault(); window.open(this.href, "_blank") }';
71+
env.attributes.title = isMac ? '⌘ + shift + click to open link' : 'Ctrl + shift + click to open link';
7272

7373
// Silently catch any error thrown by decodeURIComponent (#1186)
7474
try {

0 commit comments

Comments
 (0)