diff --git a/docs/reference/gdk/tmpl/windows.sgml b/docs/reference/gdk/tmpl/windows.sgml index c2df7e5ea0..75441dda5c 100644 --- a/docs/reference/gdk/tmpl/windows.sgml +++ b/docs/reference/gdk/tmpl/windows.sgml @@ -1148,7 +1148,7 @@ static gboolean my_widget_key_press_handler (GtkWidget *widget, GdkEventKey *event) { if (event->keysym == GDK_F10 - && (event->state && GDK_MODIFIER_MASK) == GDK_CONTROL_MASK) + && (event->state & GDK_MODIFIER_MASK) == GDK_CONTROL_MASK) { g_print ("Control-F10 was pressed\n"); return TRUE;