highlight the selected text when focus goes away to an input