Closed Bug 1214993 Opened 9 years ago Closed 9 years ago

[TV 2.5] "sendKeyEvent" doesn't work when sending "DOM_VK_HOME" to trigger homescreen

Categories

(Firefox OS Graveyard :: Gaia::TV::System, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: lchang, Assigned: lchang)

References

Details

(Whiteboard: [partner-cherry-picked<2015/11/10>])

Attachments

(1 file)

The root case is that the event object from "sendKeyEvent" doesn't contain the "key" property, which the TV system uses currently to trigger homescreen.

If we can't resolve this problem in short term, we may need a Gaia workaround instead.
Comment on attachment 8674053 [details] [review]
[gaia] luke-chang:1214993_tv_home_key_workaround > mozilla-b2g:master

Hi Rex,

Wound you mind reviewing this? Thanks.
Attachment #8674053 - Flags: review?(rexboy)
Comment on attachment 8674053 [details] [review]
[gaia] luke-chang:1214993_tv_home_key_workaround > mozilla-b2g:master

Looks good to me!
Attachment #8674053 - Flags: review?(rexboy) → review+
sendKeyEvent sends charCode only, sendNativeKeyEvent can send charactor or unmodified characters. But from https://bug768736.bmoattachments.org/attachment.cgi?id=636960, the test case sends home key with \uf729, not "home" string. We can try sendNativeKeyEvent with "home" as alternative but need check any side effect.
tests passed: https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=22c9cafa71c71cee832bb303f6b72b840370dd3e

landed on https://github.com/mozilla-b2g/gaia/commit/437725d1039c2676e1e17643526e5f4404da81ad
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: [partner-cherry-pick]
Whiteboard: [partner-cherry-pick] → [partner-cherry-picked<2015/11/10>]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: