Skip to content

Commit a8c58af

Browse files
committed
Use the altKey instead of the meta one for alternative click
1 parent d0a2916 commit a8c58af

File tree

1 file changed

+1
-1
lines changed
  • packages/lexical-playground/src/plugins/FloatingLinkEditorPlugin

1 file changed

+1
-1
lines changed

packages/lexical-playground/src/plugins/FloatingLinkEditorPlugin/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ function useFloatingLinkEditorToolbar(
366366
if ($isRangeSelection(selection)) {
367367
const node = getSelectedNode(selection);
368368
const linkNode = $findMatchingParent(node, $isLinkNode);
369-
if ($isLinkNode(linkNode) && (payload.metaKey || payload.ctrlKey)) {
369+
if ($isLinkNode(linkNode) && (payload.altKey || payload.ctrlKey)) {
370370
window.open(linkNode.getURL(), '_blank');
371371
return true;
372372
}

0 commit comments

Comments
 (0)