From 5414eba3e98cb3bfa82ea74e94e81b0d0aafceae Mon Sep 17 00:00:00 2001 From: Pan7 Date: Wed, 8 Mar 2017 21:52:06 +0100 Subject: [PATCH] F1 key binding for help --- radiant/mainframe.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/radiant/mainframe.cpp b/radiant/mainframe.cpp index 9dcaced5..5a59feda 100644 --- a/radiant/mainframe.cpp +++ b/radiant/mainframe.cpp @@ -297,6 +297,7 @@ SCommandInfo g_Commands[] = {"LoadPointfile", 'L', RAD_SHIFT, ID_FILE_POINTFILE, "menu_load_pointfile"}, {"TextureWindowScaledown", GDK_Insert, RAD_ALT, ID_TEXTUREWINDOW_SCALEDOWN, "menu_texturewindow_scaledown"}, {"TextureWindowScaleup", GDK_Delete, RAD_ALT, ID_TEXTUREWINDOW_SCALEUP, "menu_texturewindow_scaleup"}, + {"Help", GDK_KEY_F1, 0, ID_HELP, "menu_help"}, }; int g_nCommandCount = sizeof( g_Commands ) / sizeof( SCommandInfo ); @@ -1595,7 +1596,8 @@ void MainFrame::create_main_menu( GtkWidget *window, GtkWidget *vbox ){ item = create_menu_item_with_mnemonic( menu, _( "GtkRadiant Manual" ), GTK_SIGNAL_FUNC( HandleCommand ), ID_HELP ); - gtk_widget_add_accelerator( item, "activate", accel, GDK_F1, (GdkModifierType)0, GTK_ACCEL_VISIBLE ); + // does not work, using g_Commands for the key binding + //gtk_widget_add_accelerator( item, "activate", accel, GDK_F1, (GdkModifierType)0, GTK_ACCEL_VISIBLE ); // this creates all the per-game drop downs for the game pack helps // it will take care of hooking the Sys_OpenURL calls etc.