gtkwindow and key press handling
- From: Arun Sharma <arun home com>
- To: gtk-list redhat com
- Subject: gtkwindow and key press handling
- Date: Sun, 24 Aug 1997 21:35:31 -0400
Hello,
In gtkwindow.c:638
switch (event->keyval)
{
....
case GDK_Return:
case GDK_KP_Enter:
if (window->default_widget)
gtk_widget_activate (window->default_widget);
return_val = TRUE;
break;
It returns TRUE, even if it has not consumed the GDK_Return key
press. It needs to changed to:
switch (event->keyval)
{
....
case GDK_Return:
case GDK_KP_Enter:
if (window->default_widget) {
gtk_widget_activate (window->default_widget);
return_val = TRUE;
}
break;
-Arun
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]