Right click doesn't select tree element

Hi,

I’ve built a simple Tree with an ActionHandler that displays a context menu.
When right clicking, the menu is correctly displayed BUT the target tree element isn’t selected.

The online demo (http://demo.vaadin.com/sampler/#ui/data-presentation/tree) has the same behaviour. Try doing a right click and the selection wouldn’t move.

It’s a lot confusing for the end user, imho. I’d like the right click can update the selection, as the left one already does.

Suggestions?

How you would do this cleanly would be with an ItemClickListener and there checking for a right click and selecting the item. Unfortunatly due to
#13394
you can’t do that until it is fixed.