Skip to content

Commit

Permalink
fix: 🐛 Open link in new pane if Mac cmd is pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Sep 8, 2021
1 parent e717c44 commit 29abbc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sharedFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ export async function openOrSwitch(
workspace.setActiveLeaf(leavesWithDestAlreadyOpen[0]);
} else {
const mode = (app.vault as any).getConfig("defaultViewMode");
const leaf = (event.ctrlKey || event.metaKey)
const leaf = (event.ctrlKey || event.getModifierState('Meta'))
? workspace.splitActiveLeaf()
: workspace.getUnpinnedLeaf();

Expand Down

0 comments on commit 29abbc3

Please sign in to comment.