focus text view and set cursor position
basic support for undo