Write a script with this general format:
If [ Get ( WindowMode ) = 1 /* user is in Find mode */]
#User as clicked "cancel" or used view menu to enter browse mode from find
# do the stuff you want to do if the user clicks cancel here
enter Browse Mode
In Manage Custom Menus, Set up a custom menu set and edit a copy of the View menu to perform the above script when "Browse Mode" is selected. Now assign this custom menu set to any layout where you need this functionality.