File tree Expand file tree Collapse file tree 3 files changed +868
-6
lines changed Expand file tree Collapse file tree 3 files changed +868
-6
lines changed Original file line number Diff line number Diff line change @@ -1544,13 +1544,50 @@ class RenderEditor extends RenderEditableContainerBox
1544
1544
1545
1545
// End TextLayoutMetrics implementation
1546
1546
1547
+ QuillVerticalCaretMovementRun startVerticalCaretMovement (
1548
+ TextPosition startPosition) {
1549
+ return QuillVerticalCaretMovementRun ._(
1550
+ this ,
1551
+ startPosition,
1552
+ );
1553
+ }
1554
+
1547
1555
@override
1548
1556
void systemFontsDidChange () {
1549
1557
super .systemFontsDidChange ();
1550
1558
markNeedsLayout ();
1551
1559
}
1552
1560
}
1553
1561
1562
+ class QuillVerticalCaretMovementRun
1563
+ extends BidirectionalIterator <TextPosition > {
1564
+ QuillVerticalCaretMovementRun ._(
1565
+ this ._editor,
1566
+ this ._currentTextPosition,
1567
+ );
1568
+
1569
+ TextPosition _currentTextPosition;
1570
+
1571
+ final RenderEditor _editor;
1572
+
1573
+ @override
1574
+ TextPosition get current {
1575
+ return _currentTextPosition;
1576
+ }
1577
+
1578
+ @override
1579
+ bool moveNext () {
1580
+ _currentTextPosition = _editor.getTextPositionBelow (_currentTextPosition);
1581
+ return true ;
1582
+ }
1583
+
1584
+ @override
1585
+ bool movePrevious () {
1586
+ _currentTextPosition = _editor.getTextPositionAbove (_currentTextPosition);
1587
+ return true ;
1588
+ }
1589
+ }
1590
+
1554
1591
class EditableContainerParentData
1555
1592
extends ContainerBoxParentData <RenderEditableBox > {}
1556
1593
You can’t perform that action at this time.
0 commit comments