Calc: What is the right way to listen to mouse click events

I want to know what is the right way to interpret any mouse clicks on Libre Office calc through Java.
I currently use the following approach

  1. Get the XUserInputInterception object
  2. Create a Mouse Click handler class by implementing XMouseClickHandler
  3. Add the Mouse Click handler using addMouseClickHandler on XUserInputInterception object.

I am now able to successfully capture double click events of the cells.
But the same thing doesnt work to capture double click on right button of the Mouse.

Any suggestion please.