diff: update the text cursor directly

Use cursorForPosition() and setTextCursor() to update the text cursor in
the mouse press event.  This is simpler then creating fake mouse events.

Signed-off-by: David Aguilar <davvid@gmail.com>