[escher] Scroll to cursor when selecting up / down

This commit is contained in:
Léa Saviot
2019-10-10 16:20:57 +02:00
parent 961ba10122
commit 1f44f80e4a

View File

@@ -553,4 +553,5 @@ void TextArea::selectUpDown(bool up) {
contentView()->moveCursorGeo(0, up ? -1 : 1);
const char * newCursorLocation = contentView()->cursorLocation();
contentView()->addSelection(up ? newCursorLocation : currentCursorLocation, up ? currentCursorLocation : newCursorLocation);
scrollToCursor();
}