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); };