According to the [specifications](http://ariatemplates.com/forum/showthread.php?tid=177), when `validationEvent` is set to `"onError"` the error tooltip should only appear when the widget has the focus.
So I would replace the previous line with:

```js
if (cfg && cfg.validationEvent === 'onError' && (this._keepFocus || this._hasFocus)) {
```