invoke SetFocus only if there was input