More concretely, ensure preedit text goes away after commit/focus_out, and update cursor position right after focus_in.