The default bug view has changed. See this FAQ.

whitelisted key events does not contain correct keyCode information

RESOLVED FIXED in mozilla15

Status

()

Core
DOM
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: timdream, Assigned: vingtetun)

Tracking

(Depends on: 1 bug)

Trunk
mozilla15
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

+++ This bug was initially created as a clone of Bug #757486 +++

STR in Gaia:

1. replace apps/system/index.html with https://gist.github.com/2817145
2. in Gecko, invalid forwardKeyToHomescreen in b2g/chrome/content/shell.js (add |return;| at line 194)
3. Tap on the black space, allowing the iframe to gain focus
4. Press some keys

Expected:

* Getting keyCode in dump()

Actual result:

* Getting keyCode = 0
Blocks: 757486
No longer depends on: 757486
Created attachment 628714 [details] [diff] [review]
Patch

That's a small typo.
Assignee: nobody → 21
Status: NEW → ASSIGNED
Attachment #628714 - Flags: review?(mounir)
This should be tested, if we can...
Comment on attachment 628714 [details] [diff] [review]
Patch

Review of attachment 628714 [details] [diff] [review]:
-----------------------------------------------------------------

Thank you for fixing that :)
Attachment #628714 - Flags: review?(mounir) → review+
(In reply to Justin Lebar [:jlebar] from comment #2)
> This should be tested, if we can...

Damn... this is actually tested but the test has an error :-/
Created attachment 628725 [details] [diff] [review]
Test fix

Two stupid mistakes that happen to be in the code and the test checking the code... that's unfortunate :-/
Attachment #628725 - Flags: review?(21)
Attachment #628725 - Flags: review?(21) → review+
Flags: in-testsuite+
Target Milestone: --- → mozilla15
https://hg.mozilla.org/mozilla-central/rev/f16847bdf086
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
And:
https://hg.mozilla.org/mozilla-central/rev/a35f9c1fef54
Blocks: 761060
Blocks: 761067
Blocks: 761093
No longer blocks: 761093
You need to log in before you can comment on or make changes to this bug.