On some web pages something similar does happen: if you switch layout
mid-typing, the text in the form field is selected and if you don't
take notice, you lose everything typed in the previous layout. I have
seen it with several forms and facebook's graph search field. Maybe
there is something amiss there.