Closed Bug 761992 Opened 13 years ago Closed 13 years ago

Hardware key is not responsive before touching the screen

Categories

(Firefox OS Graveyard :: General, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: timdream, Unassigned)

Details

This is because the focused frame of b2g, when boot up, is the XUL ChromeWindow, and the key event never get to the content window. Home key is the exception here since it is being redirect whatsoever by bug 755648. We need to take the focus to |content.document.documentElement| when loading the initial content page. Fix should be easy if one knows how to do it.
Listen 'ContentStart' and then use the focusedElement property of the focus manager to put the focus there.
I will provide a patch if you don't beat me to it :)
https://github.com/mozilla-b2g/gaia/pull/1627/files#L10R292 I kind of workaround this by asking Lock Screen on System app to take focus when it is loaded. I wonder what would Desktop Firefox do when it is boot up with one start-up page? Does it gives the focus to that page even if it does not ask for it? If so we should match the behavior. If not this bug can be considered RESOLVED INVALID.
This is issue is since invalid as we have changed the way hardware keys are dispatched to the System app.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.