Re: Automatic focus handling? How do I turn it off?
- From: Ken Simpson <kens ActiveState com>
- To: Havoc Pennington <hp redhat com>
- Cc: <gtk-list gnome org>, <blizzard redhat com>, David Ascher <DavidA ActiveState com>, Mark Hammond <markh ActiveState com>
- Subject: Re: Automatic focus handling? How do I turn it off?
- Date: Mon, 11 Jun 2001 22:12:55 -0700 (PDT)
> 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]