Closed Bug 632702 Opened 13 years ago Closed 9 years ago

nsKeyEvent should include nsNativeKeyEvent instance

Categories

(Core :: Widget: Gtk, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 907612

People

(Reporter: masayuki, Unassigned)

Details

Now, we're making nsKeyEvent from GdkEventKey. At that time, some information are discarded. E.g., modifier state which we don't use and modified keycode by modifier keys. And DOMKeyCodeToGdkKeyCode() and nsNativeKeyBindings try to recover the native key event by the nsKeyEvent. Therefore, they cannot recover the event correctly.

I think that we should redesign nsNativeKeyEvent for storing more information on each platform (if the platform needs it). And it should be in nsKeyEvent instance. Then, we can use better key event for this feature.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.