From: Linus Torvalds Date: Wed, 7 Dec 2011 16:08:29 +0000 (-0800) Subject: Make view action shortcuts be ctrl-[1-4] instead of Fn keys X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=1cb9fc7fb4cfc919cc7880d0af3a66a2f7f107cf;p=ext%2Fsubsurface.git Make view action shortcuts be ctrl-[1-4] instead of Fn keys Suggested by Henrik Aronsen, and seems much more natural. Especially with lots of keyboards having function keys oddly mapped. Suggested-by: Henrik Brautaset Aronsen Signed-off-by: Linus Torvalds --- diff --git a/gtk-gui.c b/gtk-gui.c index f95ff88..6df8f41 100644 --- a/gtk-gui.c +++ b/gtk-gui.c @@ -578,10 +578,10 @@ static GtkActionEntry menu_items[] = { { "SelectEvents", NULL, "SelectEvents", NULL, NULL, G_CALLBACK(selectevents_dialog) }, { "Quit", GTK_STOCK_QUIT, NULL, "Q", NULL, G_CALLBACK(quit) }, { "About", GTK_STOCK_ABOUT, NULL, NULL, NULL, G_CALLBACK(about_dialog) }, - { "ViewList", NULL, "List", "F1", NULL, G_CALLBACK(view_list) }, - { "ViewProfile", NULL, "Profile", "F2", NULL, G_CALLBACK(view_profile) }, - { "ViewInfo", NULL, "Info", "F3", NULL, G_CALLBACK(view_info) }, - { "ViewThree", NULL, "Three", "F4", NULL, G_CALLBACK(view_three) }, + { "ViewList", NULL, "List", "1", NULL, G_CALLBACK(view_list) }, + { "ViewProfile", NULL, "Profile", "2", NULL, G_CALLBACK(view_profile) }, + { "ViewInfo", NULL, "Info", "3", NULL, G_CALLBACK(view_info) }, + { "ViewThree", NULL, "Three", "4", NULL, G_CALLBACK(view_three) }, }; static gint nmenu_items = sizeof (menu_items) / sizeof (menu_items[0]);