Handle showing due to input focused (such as url bar).
Added some comments to try to explain how things work.