preserve focus/visibility state
explain why we attach/detach native impl. in setParent
Merge pull request #505 from mykmelez/text-editor-focus

preserve focus/visibility state of text editor (fixes #318)