Skip to content

Commit a2115d5

Browse files
authored
Apply suggestions from code review
1 parent a8c58af commit a2115d5

File tree

2 files changed

+2
-2
lines changed
  • packages/lexical-playground/src/plugins

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function DraggableBlockPlugin({
4444
}
4545

4646
const pNode = $createParagraphNode();
47-
if (e.metaKey || e.ctrlKey) {
47+
if (e.altKey || e.ctrlKey) {
4848
node.insertBefore(pNode);
4949
} else {
5050
node.insertAfter(pNode);

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.altKey || payload.ctrlKey)) {
369+
if ($isLinkNode(linkNode) && (payload.metaKey || payload.ctrlKey)) {
370370
window.open(linkNode.getURL(), '_blank');
371371
return true;
372372
}

0 commit comments

Comments
 (0)