Can we have the feature to disable being able to select playable characters via mouse click?

I've read that there is a mod to prevent being able to select players and only allow enemies/bosses to be targeted. While using the mouse to move the camera sometimes I select a player without realizing it and lose dps.