Skip to content

Commit

Permalink
Open links in new tab by holding meta key (#1130)
Browse files Browse the repository at this point in the history
  • Loading branch information
saturn4er authored Oct 17, 2024
1 parent 74a0a2e commit 83467b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class TabRouterlinkDirective {
relativeTo: this.route,
});

if (event.ctrlKey) {
if (event.ctrlKey || event.metaKey) {
const url = this.router.serializeUrl(urlTree);

window.open(url, '_blank');
Expand Down

0 comments on commit 83467b7

Please sign in to comment.