From 6af6e226ffce2e8f738492039559635c821614cb Mon Sep 17 00:00:00 2001 From: Deon Ramsey Date: Mon, 11 Mar 2002 19:31:49 +0000 Subject: [PATCH] iUnix GTK: Partial Fix for Menu to keyboard shortcut synch error --- ChangeLog | 2 +- src/celestia/gtkmain.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 740cf379a..84b504ebd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -446,4 +446,4 @@ Code: * Fixed colors on the Hubble model * Fixed some clipping problems with 3DS meshes caused by bad center calculation * Enhanced Locations menu to support full manipulation and categorization of - saved locations. \ No newline at end of file + saved locations. diff --git a/src/celestia/gtkmain.cpp b/src/celestia/gtkmain.cpp index 4a8c6ef88..e8d4ce915 100644 --- a/src/celestia/gtkmain.cpp +++ b/src/celestia/gtkmain.cpp @@ -2139,6 +2139,10 @@ gint glarea_key_press(GtkWidget* widget, GdkEventKey* event) { if (event->string != NULL) { + // See if our key accelerators will handle this event. + if(gtk_accel_groups_activate (GTK_OBJECT (mainWindow), event->keyval, (GdkModifierType)event->state)) + return TRUE; + char* s = event->string; while (*s != '\0')