Don't handle right mouse click event in clickLayout.


I want to not handle right mouse click events in my LayoutClickListener clickLayout method and let the browser handle them as is the case with Button.ClickListener - where if you right click the browser handles the event. Is there a way to do this?

The right click (context menu click) as well as click and double click is handled in com.vaadin.terminal.gwt.client.ui.ClickEventHandler i.e. in client-side code. When a click listener is added to a layout in server-side the client-side registers handler for all of the click types. That means that it’s not configurable from server-side.