Re: Automatic focus handling? How do I turn it off?



> Or do you mean GTK has support for moving focus via the Tab key, etc.?
> This is handled initially in the key_press_event default handler in
> gtkwindow.c and from there moves into the "focus" virtual
> function/signal on specific sub-containers.

Let's try lines 1255+ of gtkwindow.c:

        case GDK_Up:
        case GDK_Down:
        case GDK_Left:
        case GDK_Right:
        case GDK_KP_Up:
        ...

          gtk_container_focus (GTK_CONTAINER (widget), direction);

          if (!GTK_CONTAINER (window)->focus_child)
            gtk_window_set_focus (GTK_WINDOW (widget), NULL);
          else
            handled = TRUE;
          break;
        }

Is this the code which performs automatic focus changing in response to
keypresses? It certainly seems to fit the symptoms :)
Hmm.. But there doesn't appear any way of "turning it off".

TTUL
Ken





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]