I'm not I do not understand why setFocus() method of Fanceetree instance do not work properly.
When called this method,  the event handler is triggered, but the element not receive focus.
When using the keyboard or the jQuery focus() function on Fancytree.$container  - all work good.