nsWindow *focusWindow = window->mFocusChild; if (!focusWindow) focusWindow = window;
nsWindow *focusWindow = gFocusWindow ? gFocusWindow : window;
key_press_event_cb (GtkWidget *widget, GdkEventKey *event){    LOG(("key_press_event_cb\n"));    // find the window with focus and dispatch this event to that widget    nsWindow *window = get_window_for_gtk_widget(widget);    if (!window)        return FALSE;    nsWindow *focusWindow = window->mFocusChild;    if (!focusWindow)        focusWindow = window;    return focusWindow->OnKeyPressEvent(widget, event);}