anEvent.charCode = aGEK->keyval;
anEvent.charCode = 0;
void InitKeyEvent(GdkEventKey *aGEK,                            gpointer   p,                            nsKeyEvent &anEvent,                            PRUint32   aEventType){  anEvent.message = aEventType;  anEvent.widget  = (nsWidget *) p;  anEvent.eventStructType = NS_KEY_EVENT;  if (aGEK != nsnull) {    anEvent.keyCode = nsConvertKey(aGEK->keyval) & 0x00FF;    //    // As per joki: as long as we're using ASCII rather than Unicode,    // it's okay to set the keycode to the charcode because the ns    // keycodes (e.g. VK_X) happen to map to ascii values;    // however, when we move to unicode, we'll want to send the     // unicode translation in the charCode field.    //    anEvent.charCode = aGEK->keyval;    anEvent.time = aGEK->time;    anEvent.isShift = (aGEK->state & GDK_SHIFT_MASK) ? PR_TRUE : PR_FALSE;    anEvent.isControl = (aGEK->state & GDK_CONTROL_MASK) ? PR_TRUE : PR_FALSE;    anEvent.isAlt = (aGEK->state & GDK_MOD1_MASK) ? PR_TRUE : PR_FALSE;    anEvent.point.x = 0;    anEvent.point.y = 0;  }}