Closed Bug 743631 Opened 12 years ago Closed 12 years ago

Check keycodes instead of scancodes when detecting keyevents

Categories

(Core :: Widget, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: mwu, Assigned: mwu)

Details

Attachments

(1 file)

The use of scancodes instead of keycodes was an old hack that has come back to bite me with devices that don't use normal linux scancodes.
Attachment #630744 - Flags: review?(jones.chris.g)
Comment on attachment 630744 [details] [diff] [review]
Use keyCode instead of scanCode and use a lookup table

>diff --git a/widget/gonk/GonkKeyMapping.h b/widget/gonk/GonkKeyMapping.h

>+#ifndef GONKKEYMAPPING_H
>+#define GONKKEYMAPPING_H
>+

Needs a license header.

>+/* See libui/KeycodeLabels.h for the mapping */
>+static const unsigned long kKeyMapping[] = {

I didn't review all of these individually.

r=me with license header.
Attachment #630744 - Flags: review?(jones.chris.g) → review+
https://hg.mozilla.org/mozilla-central/rev/d04694a80016
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: