Closed
Bug 1119673
Opened 9 years ago
Closed 9 years ago
KeyboardEvent.key of Home key will be changed to 'MozHomeScreen'
Categories
(Firefox OS Graveyard :: Gaia::System::Input Mgmt, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dwi2, Assigned: dwi2)
References
Details
Attachments
(1 file)
According to bug 1116762, .key value is going to be 'MozHomeScreen' for Home key. We should make modification in browser_key_event_manager.js accordingly to prevent home key malfunction.
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → tzhuang
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•9 years ago
|
||
Hi Tim, According to bug 1116762, KeyboardEvent.key value of Home key is going to be MozHomeScreen. We add .key value mapping in browser_key_event_manager.js in this patch accordingly, in order to prevent Home key malfunction. Please help to review the patch, thanks.
Attachment #8546435 -
Flags: review?(timdream)
Comment 3•9 years ago
|
||
Comment on attachment 8546435 [details] [review] PR Just to make sure, we will be removing some of these .key values in the futures right?
Attachment #8546435 -
Flags: review?(timdream) → review+
Assignee | ||
Comment 4•9 years ago
|
||
Yes, we will remove 'home' and 'exit' in the future. Because 'home' and 'exit' stand for different meaning from that of 'Home' key on phones in DOM Level 3 standard.
Assignee | ||
Comment 5•9 years ago
|
||
Forgot to say that, the removing works will be in bug 1117654. We should construct a constant '.key' value mapping table for Gaia in bug 1117654. And in Gaia, we compare KeyboardEvent.key value with that table instead of comparing literal string directly. Because string values of '.key' might change from time to time before the standard is froze.
Assignee | ||
Comment 6•9 years ago
|
||
Gaia-Try result https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=6915d74e906f Landed on mater https://github.com/mozilla-b2g/gaia/commit/fa4af5f6d5ed1c3c0223447b316bcc60f300cb8f
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•