Add focus management to textedit. Close popups (with OnOK) on Enter.