mozilla-b2g/gaia — pull request #2951 by lodr (2012-07-30 12:03:24+00:00)
Title: Bugfixing keyboard on system

## Overview

Keyboard was not shown on system under certain conditions:

* No applications was being displayed. (Necessary)
* The system application was showing a prompt. (Not necessary, it should do the same with other inputs)

This was caused because keyboard_manager.js tries to retrieve the active application via WindowManager. As no application is being displayed, null is returned and the resize process failed.

This, in combination with a z-index issue caused not showing the keyboard on system.

This pull request offer an alternative solution for [#2920](https://github.com/mozilla-b2g/gaia/issues/2920).

## Flaws and future work

It reopen the issue [#2857](https://github.com/mozilla-b2g/gaia/issues/2857) for unknown reasons. It should be the same case as testing with the uitest.