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)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dwi2, Assigned: dwi2)

References

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
timdream
: review+
Details | Review
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.
This bug must be fixed before 1116762.
Blocks: 1116762
Assignee: nobody → tzhuang
Status: NEW → ASSIGNED
Attached file PR
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 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+
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.
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.
See Also: → 1117654
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: