mozilla-b2g/gaia — pull request #1508 by ian-liu (2012-05-28 04:04:41+00:00)
Title: Improve user experience of sleep menu control. Modulize the sleep menu widget.

1. Modulized the sleep menu widget to new sleepmenu.js/css files.
2. Improve user experience of sleep menu control:
a) Support to screen off by power key immediately when the sleep menu is showing.
b) Screen on(original behavior) and pop out the sleep menu when user long press the power key in screen off status.