@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.
- package/dist/index.js +65 -65
- package/dist/index.js.map +3 -3
- package/dist/types/editor.d.ts +9 -4
- package/package.json +1 -1
package/dist/types/editor.d.ts
CHANGED
|
@@ -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
|
|
644
|
-
*
|
|
645
|
-
|
|
646
|
-
|
|
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;
|