Clicking the right and left buttons on the widget.

How to make a click for the right and left mouse button on the widget?