mozilla-b2g/gaia — pull request #7488 by RudyLu (2013-01-10 11:47:41+00:00)
Title: Bug 828197 - make the onpair screen of bluescreen properly handle home key

[Root Cause]
The on pair screen will disappear once the keyboard is shown up because we listen to 'resize' event and close the window.
What we want is to close the window when [Home] button is pressed but not for keyboard change.

[Solution]
(Hack) The only way we can know the home screen is pressed is still from window "resize" event, and here we check window.innerHeight to be < 200, because it is 40px when the attentation screen is in active status bar mode.