Automatically focus and unfocus the textarea

Reduce the number of clicks required by automatically focussing and
de-focussing the textarea when starting or ending a text input problem.