[TextEditor] Segment markers can now handle input actions & fixed a
selection drag bug.