lexical 0.29.1-nightly.20250401.0 → 0.29.1-nightly.20250403.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Lexical.dev.js CHANGED
@@ -2590,7 +2590,7 @@ function onKeyDown(event, editor) {
2590
2590
  } else if (isDeleteLineBackward(key, metaKey)) {
2591
2591
  event.preventDefault();
2592
2592
  dispatchCommand(editor, DELETE_LINE_COMMAND, true);
2593
- } else if (isDeleteLineForward(key, metaKey)) {
2593
+ } else if (isDeleteLineForward(key, metaKey, ctrlKey)) {
2594
2594
  event.preventDefault();
2595
2595
  dispatchCommand(editor, DELETE_LINE_COMMAND, false);
2596
2596
  } else if (isBold(key, altKey, metaKey, ctrlKey)) {
@@ -10291,7 +10291,7 @@ class LexicalEditor {
10291
10291
  };
10292
10292
  }
10293
10293
  }
10294
- LexicalEditor.version = "0.29.1-nightly.20250401.0+dev.cjs";
10294
+ LexicalEditor.version = "0.29.1-nightly.20250403.0+dev.cjs";
10295
10295
 
10296
10296
  let keyCounter = 1;
10297
10297
  function resetRandomKey() {
@@ -10890,8 +10890,8 @@ function isDeleteWordForward(key, altKey, ctrlKey) {
10890
10890
  function isDeleteLineBackward(key, metaKey) {
10891
10891
  return IS_APPLE && metaKey && isBackspace(key);
10892
10892
  }
10893
- function isDeleteLineForward(key, metaKey) {
10894
- return IS_APPLE && metaKey && isDelete(key);
10893
+ function isDeleteLineForward(key, metaKey, ctrlKey) {
10894
+ return IS_APPLE && (metaKey && isDelete(key) || ctrlKey && key.toLowerCase() === 'k');
10895
10895
  }
10896
10896
  function isDeleteBackward(key, altKey, metaKey, ctrlKey) {
10897
10897
  if (IS_APPLE) {
@@ -11633,7 +11633,7 @@ function $cloneWithProperties(latestNode) {
11633
11633
  }
11634
11634
  function setNodeIndentFromDOM(elementDom, elementNode) {
11635
11635
  const indentSize = parseInt(elementDom.style.paddingInlineStart, 10) || 0;
11636
- const indent = indentSize / 40;
11636
+ const indent = Math.round(indentSize / 40);
11637
11637
  elementNode.setIndent(indent);
11638
11638
  }
11639
11639
 
package/Lexical.dev.mjs CHANGED
@@ -2588,7 +2588,7 @@ function onKeyDown(event, editor) {
2588
2588
  } else if (isDeleteLineBackward(key, metaKey)) {
2589
2589
  event.preventDefault();
2590
2590
  dispatchCommand(editor, DELETE_LINE_COMMAND, true);
2591
- } else if (isDeleteLineForward(key, metaKey)) {
2591
+ } else if (isDeleteLineForward(key, metaKey, ctrlKey)) {
2592
2592
  event.preventDefault();
2593
2593
  dispatchCommand(editor, DELETE_LINE_COMMAND, false);
2594
2594
  } else if (isBold(key, altKey, metaKey, ctrlKey)) {
@@ -10289,7 +10289,7 @@ class LexicalEditor {
10289
10289
  };
10290
10290
  }
10291
10291
  }
10292
- LexicalEditor.version = "0.29.1-nightly.20250401.0+dev.esm";
10292
+ LexicalEditor.version = "0.29.1-nightly.20250403.0+dev.esm";
10293
10293
 
10294
10294
  let keyCounter = 1;
10295
10295
  function resetRandomKey() {
@@ -10888,8 +10888,8 @@ function isDeleteWordForward(key, altKey, ctrlKey) {
10888
10888
  function isDeleteLineBackward(key, metaKey) {
10889
10889
  return IS_APPLE && metaKey && isBackspace(key);
10890
10890
  }
10891
- function isDeleteLineForward(key, metaKey) {
10892
- return IS_APPLE && metaKey && isDelete(key);
10891
+ function isDeleteLineForward(key, metaKey, ctrlKey) {
10892
+ return IS_APPLE && (metaKey && isDelete(key) || ctrlKey && key.toLowerCase() === 'k');
10893
10893
  }
10894
10894
  function isDeleteBackward(key, altKey, metaKey, ctrlKey) {
10895
10895
  if (IS_APPLE) {
@@ -11631,7 +11631,7 @@ function $cloneWithProperties(latestNode) {
11631
11631
  }
11632
11632
  function setNodeIndentFromDOM(elementDom, elementNode) {
11633
11633
  const indentSize = parseInt(elementDom.style.paddingInlineStart, 10) || 0;
11634
- const indent = indentSize / 40;
11634
+ const indent = Math.round(indentSize / 40);
11635
11635
  elementNode.setIndent(indent);
11636
11636
  }
11637
11637