diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 1ebe497..4e2d788 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -9468,7 +9468,8 @@ gtk_window_activate_key (GtkWindow   *window,
             }
           else 
             {
-              if (enable_accels && !found_entry)
+              if (enable_accels && !found_entry
+		  && entry->modifiers == event->state)
                 {
 	          found_entry = entry;
                 }
