Handle Left-Click in vaja, let Right-Clicks to the Browser

Hello,

we have a component which displays a thumbnail.
When the user left-clicks on it, it will download the hires image of that thumbnail.
That’s working fine.

But now we would like the users to be able to copy/paste the thumbnail into other applications.
For this we would need the right click on the image to NOT be handled by vaadin. (I don’t think we can access the clipboard from javascript/vaadin)… ?

How can we do this ?

Actually we do this:

              
addListener(new ClickListener()
{
  @Override
  public void click(ClickEvent event)
  {
    if (event.getButton() == ItemClickEvent.BUTTON_LEFT)
    {
      FileDownloadResource fdl= new FileDownloadResource( _originalImgURL,
      event.getComponent().getApplication(), _fileName);
      event.getComponent().getApplication().getMainWindow().open(fdl);
    }
  }
}
);

So only the left click is now doing something, but the right-click now does nothing…

André