|
|
@@ -2073,7 +2073,7 @@ bool TextEditor::moveCaretToTop (bool selecting) |
|
|
|
bool TextEditor::moveCaretToStartOfLine (bool selecting)
|
|
|
|
{
|
|
|
|
const auto caretPos = (getCaretRectangle() - getTextOffset()).toFloat();
|
|
|
|
return moveCaretWithTransaction (indexAtPosition (0.0f, caretPos.getY()), selecting);
|
|
|
|
return moveCaretWithTransaction (indexAtPosition (0.0f, caretPos.getCentreY()), selecting);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool TextEditor::moveCaretToEnd (bool selecting)
|
|
|
@@ -2084,7 +2084,7 @@ bool TextEditor::moveCaretToEnd (bool selecting) |
|
|
|
bool TextEditor::moveCaretToEndOfLine (bool selecting)
|
|
|
|
{
|
|
|
|
const auto caretPos = (getCaretRectangle() - getTextOffset()).toFloat();
|
|
|
|
return moveCaretWithTransaction (indexAtPosition ((float) textHolder->getWidth(), caretPos.getY()), selecting);
|
|
|
|
return moveCaretWithTransaction (indexAtPosition ((float) textHolder->getWidth(), caretPos.getCentreY()), selecting);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool TextEditor::deleteBackwards (bool moveInWholeWordSteps)
|
|
|
|