text-input: seek through text with the cursor

i.e. when the cursor wanders outside of the input-box, reposition the
label so the cursor is inside it again. you know, like how a text box is
supposed to work.