The callback is removed when the window is detached. Prevents weak references to the TextView from being kept. No longer created for non editable texts (!). Hiding the cursor handle when cursor is hidden. Change-Id: Ic92f6cfc5b6ef6460f1edc6b9a564e4153d9c40f