Single tree view stealing focus from other components

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Single tree view stealing focus from other components

Gerrit Boers
Hi,

We’ve run into an issue with the tree view where the treeview component will steal focus from an input component. Is there a way to control the focus behaviour of the tree view component? Any tips where I should look?

Kind regards,

Gerrit

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Single tree view stealing focus from other components

Erik Bruchez
Administrator
The tree component uses Fancytree. Looking at the doc and source for that
might help:

    https://github.com/mar10/fancytree

On the Orbeon Forms side, the integration is fairly simple:

   
https://github.com/orbeon/orbeon-forms/blob/master/form-runner/js/src/main/scala/org/orbeon/xbl/TreeSelect1.scala
   
https://github.com/orbeon/orbeon-forms/blob/master/form-runner/jvm/src/main/resources/xbl/orbeon/tree-select1/tree-select1.xbl

-Erik

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Single tree view stealing focus from other components

Gerrit Boers
Hi Erik,

Thanks, I’ll look into it.

Kind regards,

Gerrit

> On 27 Nov 2018, at 01:19, Erik Bruchez <[hidden email]> wrote:
>
> The tree component uses Fancytree. Looking at the doc and source for that
> might help:
>
>    https://github.com/mar10/fancytree
>
> On the Orbeon Forms side, the integration is fairly simple:
>
>
> https://github.com/orbeon/orbeon-forms/blob/master/form-runner/js/src/main/scala/org/orbeon/xbl/TreeSelect1.scala
>
> https://github.com/orbeon/orbeon-forms/blob/master/form-runner/jvm/src/main/resources/xbl/orbeon/tree-select1/tree-select1.xbl
>
> -Erik
>
> --
> Sent from: http://discuss.orbeon.com/
>
> --
> You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Single tree view stealing focus from other components

Gerrit Boers
In reply to this post by Erik Bruchez
Hi Erik,

I managed to solve the issue, a minor change in the jquery.fancytree-all.min.js was required (deleting: && a(f.$container).focus()). There seem to be no negative side effects, the tree can still receive focus and navigating the nodes with the arrow keys still works.

What would be the best way for us to incorporate this change? For now I just edited the file in the orbeon-form-runner.jar.

Kind regards,

Gerrit

On 27 Nov 2018, at 01:19, Erik Bruchez <[hidden email]> wrote:

The tree component uses Fancytree. Looking at the doc and source for that
might help:

   https://github.com/mar10/fancytree

On the Orbeon Forms side, the integration is fairly simple:


https://github.com/orbeon/orbeon-forms/blob/master/form-runner/js/src/main/scala/org/orbeon/xbl/TreeSelect1.scala

https://github.com/orbeon/orbeon-forms/blob/master/form-runner/jvm/src/main/resources/xbl/orbeon/tree-select1/tree-select1.xbl

-Erik

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].