restore completion and history
refocus text entry after enter