Added ability to lock by long pressing the search button.