Mouse right click event on text field

I looking for this for a while and couldn’t find the answer.

I have a table which populates the text field by using TableFieldFactory. I have a scenario where I want to display the popup window after right clicking on text field.

Can’t add TextField inside layout. If I do then can’t return layout from TableFieldFactory.

How to achieve this? is there any workaround?


You should have a look at 7.6.0.beta1.
I haven’t tested this myself yet, but the release note says:

Most Components fire a ContextClickEvent when the user tries to open a context menu