[JBIDE-18048] select all text only if we're selecting the button