Skip navigation
jf_lhotse
Currently Being Moderated

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

Jul 22, 2013 10:16 AM

Tags: #air #flex #tree #node #right #click #focus.

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.

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points