Topic: Leave focus alone

Hi Moro,

I have an input field in which I have to enter a path.
When I select this field, I display a Mif.Tree underneath it in order to easily select this path (the tree represents a directory structure).

With Safari 3, when you select an element in the tree, the focus remains on the input field. This is what I want.

With Firefox 3, when you select an element in the tree, the input field looses focus to the current node. In order to act the same way as Safari, I commented out lines 496, 497 and 498 of mif.tree-v1.0.js :

//if(Browser.Engine.gecko) {
//    this.wrapper.focus();
//}

With IE 7, I always loose focus: The current selected node takes it.

Is there a way to prevent this?

Thanks,
Peter

Re: Leave focus alone

i'm add preventFocus second argument in Tree::select for prevent focus in gecko.

In ie7 works for me, mb there is some test/demo page?