@usememos/editor 26.11.6 → 26.11.7

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.
@@ -640,10 +640,15 @@ export declare class Editor {
640
640
  /**
641
641
  * WebKit skips code blocks and tables with ArrowDown and ArrowUp. When no
642
642
  * editable text follows them (a rendered footnote or formula is not), it
643
- * does not move the caret at all. If the browser left the caret on the edge
644
- * line of its block, move it into the next block that holds a caret.
645
- */
646
- private unlessCaretMoves;
643
+ * does not move the caret at all, nor does Firefox up from the first line
644
+ * of a code block. The caret, if it is on the edge line of its block: the
645
+ * keyup checks whether it moved. Not sooner: on iOS a hardware keyboard's
646
+ * arrow moves the caret after the keydown's tasks and frames, but before
647
+ * its keyup.
648
+ */
649
+ private caretMayStay;
650
+ /** On the keyup of `key`: if the browser left the caret where it was, move it into the next block that holds one. */
651
+ private unlessCaretMoved;
647
652
  /** Selects all the text of the block (or table cell) holding `target`. False if it holds none. */
648
653
  private selectBlockText;
649
654
  private moveMenu;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usememos/editor",
3
- "version": "26.11.6",
3
+ "version": "26.11.7",
4
4
  "description": "A block editor for Markdown. Zero runtime dependencies, with an optional React component.",
5
5
  "keywords": [
6
6
  "markdown",