Fixe bug with auto-search feature in main view.

Same fix was made in 8.0 branch. We now remove the key up/down event
handlers that are used on the main grid view when navigating away from
the view, so that the auto-search feature doesn't try to engage when the
user is typing on other views.