Resets the click count if another button is pressed

I have a use case in my app where a right click open a contextual menu and a double click open a pane. If I do a click to select the item and quickly after a right click to open the contextual menu, the pane is also open.

I could have fix this in my app, but it seems to me that it's rather an SC issue. So this fix simply reset the click count if we click with a different button.