Skip to content

Commit 9dca56e

Browse files
committed
Merge pull request #419 from Soundnode/fix-412
fix #412. add preventDefault when cmd(ctrl) + click is triggered
2 parents 69e237d + 03e60d0 commit 9dca56e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/public/js/app.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,13 @@ app.run(function($rootScope, $log, $state, SCapiService, hotkeys) {
9393

9494
});
9595

96-
// shortcut to open devtools
96+
// disable cmd (ctrl) + click to open a new tab/page
97+
document.addEventListener('click', function(e) {
98+
if ( e.metaKey ) {
99+
e.preventDefault();
100+
}
101+
}, false);
102+
97103
hotkeys.add({
98104
combo: ['command+/', 'ctrl+/'],
99105
description: 'Open devtools',

0 commit comments

Comments
 (0)