implement select_text_when_enabled option