Unselect points when click empty area

The above solution does not work anymore in latest versions 2.32.0 and 2.33.0