handles menu long-press for search.