Closed Bug 3631 Opened 26 years ago Closed 26 years ago

[BLOCK] need charCode field of the nsKeyEvent struct filled in when key event received

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P1)

x86
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: sdagley, Assigned: akkzilla)

Details

We need to know what the character code of a key is so we need th charCode field of the nsKeyEvent struct filled in when key event received. On the Mac this happens in widget/src/mac/nsMacEventHandler.cpp::HandleKeyEvent. Bug #3511 is what this bug is derived from.
Priority: P3 → P1
Target Milestone: M3
Summary: need charCode field of the nsKeyEvent struct filled in when key event received → [BLOCK] need charCode field of the nsKeyEvent struct filled in when key event received
We need the "OS translated UniCode char" out of a gtk event: struct _GdkEventKey { GdkEventType type; GdkWindow *window; gint8 send_event; guint32 time; guint state; guint keyval; gint length; gchar *string; }; This needs to happen in InitKeyEvent(), mozilla/widget/src/gtk/nsGtkEventHandler.cpp
Here's the nsKeyEvent struct I need to fill in.. struct nsKeyEvent : public nsInputEvent { /// see NS_VK codes PRUint32 keyCode; /// OS translated Unicode char PRUint32 charCode; };
Assignee: mcafee → akkana
Ok we just need the ascii value of the character, akkana & I tested a fix for this. Giving this to akkana.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Just checked in a fix to nsGtkEventHandler.
Status: RESOLVED → VERIFIED
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.