[TextEditor] Fixed cursor hiding when scrolling with keys.