Button focus and blur events not triggered.

When I attach a onfocus or onblur event to a button, these events are not triggered. I guess they are blocked by the webix code. But how to listen to button focus and blur events.

This code is not working:

    $$('evaluate_button').attachEvent('onFocus' /* or 'onBlur' */, console.log);

And this isn’t working either:

webix.event($$('evaluate_button').getInputNode(), 'focus', console.log);

Neither using ‘focus’, ‘onfocus’, or ‘onFocus’. Also, blur isn’t working. But using
mouseover, it works. Only I need focus and blur to tell whether a button received and lost focus.

Please check the sample, the Webix events work as they should:

http://webix.com/snippet/0f93edfc

Thanks for answering. However, I didn’t know what focus and blur did exactly. I actually wanted this: http://webix.com/snippet/1ea89e97.

It that case, your current solution is absolutely right.