flip caret on open