How to detect "click" event in Blender Python


I am finding a way how to detect click event in Blender’s Python API. I already found out that DOUBLE_CLICK event is not supposed to work, and for some reason it’s not even considered a bug:

But I was very disappointed that not only DOUBLE_CLICK but also regular CLICK event doesn’t work. Now, how am I supposed to be able to exit modal operator using right mouse click without triggering right mouse context menu at the same time? Right now, I am unable to. If I use RIGHTMOUSE event of PRESS or RELEASE type, it triggers context menu also, which is RIGHTMOUSE CLICK. I want it to register as RIGHTMOUSE CLICK event too so that exiting my modal operator overrides it and does not open context menu.