I\'m trying to achieve that the search field on macOs will lose its focus when clicking outside this field.
Two functions are implemented and work well: