Hide keyboard when leaving History selection.

(whether it's due to selecting an item, or clicking top-left button)

Change-Id: I4d65f98d55f54636b2f7e08a0c302c2fe46455fa