From 83467b7dfb78849e70708607ac5698c078394d59 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Thu, 17 Oct 2024 21:25:21 +0300 Subject: [PATCH] Open links in new tab by holding meta key (#1130) --- frontend/src/app/framework/angular/tab-router-link.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/framework/angular/tab-router-link.directive.ts b/frontend/src/app/framework/angular/tab-router-link.directive.ts index 3ab2cd319..60abcbd63 100644 --- a/frontend/src/app/framework/angular/tab-router-link.directive.ts +++ b/frontend/src/app/framework/angular/tab-router-link.directive.ts @@ -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');