Vaadin 8 VerticalLayout addClickListener disables browser context menu

Hi, I need to detect left clicks on a TextArea but I also need to detect if the users clicks on the VerticalLayout which contains the TextArea.

If I use addLayoutClickListener the browser context menu gets disabled and this prevents the user to use copy and paste with the right click.

I can’t decide if write a custom VerticalClickLayout or if implement a context menu with copy and paste.

Any suggestions?

You can maybe get help from this add-on: - it allows you to control propagation of the key events.