check meta key in addition to ctrl

pull/34730/head
bytedream 2025-06-16 13:53:48 +02:00
parent 06ac1c9f13
commit 10d9471146
1 changed files with 2 additions and 2 deletions

View File

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