[b2g] Turn the screen on when any of the hw button is pressed (except sleep button)

RESOLVED INVALID

Status

RESOLVED INVALID
7 years ago
6 years ago

People

(Reporter: timdream, Unassigned)

Tracking

unspecified
ProductDemo
x86
Mac OS X

Firefox Tracking Flags

(blocking-kilimanjaro:+, blocking-basecamp:+)

Details

Attachments

(1 attachment)

Created attachment 596611 [details]
turnScreenOn, self-explanatory

(self-explanatory title)
Attachment #596611 - Flags: review?(21)
Comment on attachment 596611 [details]
turnScreenOn, self-explanatory

>diff -r b077059c575a b2g/chrome/content/shell.js
>   handleEvent: function shell_handleEvent(evt) {
>+    if (evt.keyCode !== evt.DOM_VK_SLEEP)
>+      this.turnScreenOn();
>+
>     switch (evt.type) {
>       case 'keypress':
>         switch (evt.keyCode) {

Do you really want to do that? It seems to me that this is a good way to turn on your screen by putting your hand in your pocket.
Tim, can you update that with the patch you have pushed to m-c git? Thanks!
Is this still a problem? Can you update your patch and land if necessary?
blocking-basecamp: --- → +
blocking-kilimanjaro: --- → +
Screen is now controlled by Gaia instead of shell.js
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → INVALID

Comment 5

6 years ago
Please post the gaia issue link if you invalidate bugs like this.
You need to log in before you can comment on or make changes to this bug.