In default setting, double-click or enter leaves the viewer mode, and brings the user to the browser mode under the directory of the last viewed image.
When I have searched for something (e.g. view a folder with subfolders, view a tag, or so), and have double-clicked (or pressed enter) to view a specific image from the search results, I would expect to return to the original search results when I exit the viewer mode, rather than view the directory of the image.
I think the behavior could be changed, or an option could be added for the user to determine.
Return to last browse when exiting viewer mode
Moderators: XnTriq, helmut, xnview