FIX: Use mouse down event when cancelling search (PR #14788)

This fixes an issue where selecting text in the search input and ending that selection with the cursor outside of the search panel would close the search panel. The mouseDown event is better for this use case because it doesn’t get invoked when selecting text.

GitHub