gtkwindow and key press handling



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]