From 10d947114617c395b787c874d65f0d029982a2a3 Mon Sep 17 00:00:00 2001 From: bytedream Date: Mon, 16 Jun 2025 13:53:48 +0200 Subject: [PATCH] check meta key in addition to ctrl --- web_src/js/components/ViewFileTreeItem.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_src/js/components/ViewFileTreeItem.vue b/web_src/js/components/ViewFileTreeItem.vue index 696d234e10..8cd9d36b57 100644 --- a/web_src/js/components/ViewFileTreeItem.vue +++ b/web_src/js/components/ViewFileTreeItem.vue @@ -43,8 +43,8 @@ const doLoadDirContent = () => { const doLoadFileContent = (event: MouseEvent) => { // open the file in a new tab if either // - the auxiliary button (usually the mouse wheel button) is the origin of the click - // - the ctrl key was pressed while clicking - const openNewTab = event.button === 1 || event.ctrlKey; + // - the ctrl key or meta key (for mac support) was pressed while clicking + const openNewTab = event.button === 1 || event.ctrlKey || event.metaKey; props.navigateViewContent(props.item.fullPath, openNewTab); };