anEvent.isMeta = (aGEK->state & GDK_MOD2_MASK) ? PR_TRUE : PR_FALSE;
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 = nsPlatformToDOMKeyCode(aGEK);    anEvent.charCode = 0;    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;  }}