add auto-focus-when directive.