0 Replies Latest reply: Jul 22, 2013 10:16 AM by jf_lhotse RSS

    Right click select node in tree (for a standalone Air app)?

    jf_lhotse

      For the sake of userfriendliness (in regard to a context menu) I wold like to "move" the selected node in a tree to the node that currently has the focus when right clicking it - like how the context menu access in windows file explorer works (focus and selected item are always the same  when right clicking).

      In worst case scenario I would like to disable a created context menu if the selected node and the node that currently has the focus are not the same).

      Now users can get confused when right clicking to access my context menu, in the tree structure, if the selected node and the node they are currently hovering over (and thus are in focus) are different.

       

      I was thinking of finding which node currently has the focus and then making that node the selected node - but I cant get it to work:-).

       

      Please, help a beginner.