To elaborate - I want a setup where action-mouseLMB clicking (in the LMB to select setup) on an empty space in the 3D View causes all of the mesh to be deselected when in Edit Mode, all objects when in Object mode, etc. I specifically would like to do it via an addon, but any help is appreciated.