Skip to content

Commit 10d9471

Browse files
committed
check meta key in addition to ctrl
1 parent 06ac1c9 commit 10d9471

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web_src/js/components/ViewFileTreeItem.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ const doLoadDirContent = () => {
4343
const doLoadFileContent = (event: MouseEvent) => {
4444
// open the file in a new tab if either
4545
// - the auxiliary button (usually the mouse wheel button) is the origin of the click
46-
// - the ctrl key was pressed while clicking
47-
const openNewTab = event.button === 1 || event.ctrlKey;
46+
// - the ctrl key or meta key (for mac support) was pressed while clicking
47+
const openNewTab = event.button === 1 || event.ctrlKey || event.metaKey;
4848
props.navigateViewContent(props.item.fullPath, openNewTab);
4949
};
5050

0 commit comments

Comments
 (0)