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)
Tracking
()
VERIFIED
FIXED
M3
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.
Reporter | ||
Updated•26 years ago
|
Priority: P3 → P1
Target Milestone: M3
Updated•26 years ago
|
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
Comment 1•26 years ago
|
||
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
Comment 2•26 years ago
|
||
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;
};
Updated•26 years ago
|
Assignee: mcafee → akkana
Comment 3•26 years ago
|
||
Ok we just need the ascii value of the character, akkana & I tested
a fix for this. Giving this to akkana.
Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 4•26 years ago
|
||
Just checked in a fix to nsGtkEventHandler.
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•