There are a few collision with accelerators in gftp. The attached patch, created from git on upstream, fixes them all as far as I can see. As a bonus, Ctrl+V can now be used for pasting text in gftp as it no longer is overrun by the "view" command ( https://bugzilla.gnome.org/show_bug.cgi?id=637925 ).

Have also sent this to the upstream bug report https://bugzilla.gnome.org/show_bug.cgi?id=577505 , so
hopefully it will be fixed there eventually.

Regards,
Anders
>From 481dca5efd31af6fc78bf3535df8ccaf16ad7bd6 Mon Sep 17 00:00:00 2001
From: Anders Jonsson <anders.jons...@norsjovallen.se>
Date: Sat, 22 Feb 2014 23:57:31 +0100
Subject: Avoid accelerator button collisions

---
 src/gtk/gftp-gtk.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/gtk/gftp-gtk.c b/src/gtk/gftp-gtk.c
index 1ed3474..f7ea965 100644
--- a/src/gtk/gftp-gtk.c
+++ b/src/gtk/gftp-gtk.c
@@ -302,14 +302,14 @@ CreateMenus (GtkWidget * parent)
     {N_("/Local/_Delete..."), "<control><shift>D", delete_dialog, 0,
         MN_(NULL)},
     {N_("/Local/_Edit..."), "<control><shift>E", edit_dialog, 0, MN_(NULL)},
-    {N_("/Local/_View..."), "<control><shift>V", view_dialog, 0, MN_(NULL)},
+    {N_("/Local/_View..."), "<control><shift>W", view_dialog, 0, MN_(NULL)},
     {N_("/Local/_Refresh"), "<control><shift>R", gftp_gtk_refresh, 0,
         MS_(GTK_STOCK_REFRESH)},
     {N_("/_Remote"), NULL, 0, 0, MN_("<Branch>")},
     {N_("/Remote/tearoff"), NULL, 0, 0, MN_("<Tearoff>")},
     {N_("/Remote/_Open Location..."), "<control>O", openurl_dialog, 0,
        MS_(GTK_STOCK_OPEN)},
-    {N_("/Remote/D_isconnect"), "<control>D", gftpui_disconnect, 0,
+    {N_("/Remote/D_isconnect"), "<control>I", gftpui_disconnect, 0,
        MS_(GTK_STOCK_CLOSE)},
     {N_("/Remote/sep"), NULL, 0, 0, MN_("<Separator>")},
     {N_("/Remote/Change _Filespec..."), "<control>F", change_filespec, 0,
@@ -329,7 +329,7 @@ CreateMenus (GtkWidget * parent)
         MN_(NULL)},
     {N_("/Remote/_Delete..."), "<control>D", delete_dialog, 0, MN_(NULL)},
     {N_("/Remote/_Edit..."), "<control>E", edit_dialog, 0, MN_(NULL)},
-    {N_("/Remote/_View..."), "<control>V", view_dialog, 0, MN_(NULL)},
+    {N_("/Remote/_View..."), "<control>W", view_dialog, 0, MN_(NULL)},
     {N_("/Remote/_Refresh"), "<control>R", gftp_gtk_refresh, 0,
         MS_(GTK_STOCK_REFRESH)},
     {N_("/_Bookmarks"), NULL, 0, 0, MN_("<Branch>")},
@@ -352,8 +352,8 @@ CreateMenus (GtkWidget * parent)
     {N_("/Transfer/Move File _Down"), NULL, move_transfer_down, 0,
        MS_(GTK_STOCK_GO_DOWN)},
     {N_("/Transfer/sep"), NULL, 0, 0, MN_("<Separator>")},
-    {N_("/Transfer/_Retrieve Files"), "<control>R", get_files, 0, MN_(NULL)},
-    {N_("/Transfer/_Put Files"), "<control>P", put_files, 0, MN_(NULL)},
+    {N_("/Transfer/_Retrieve Files"), "<control>T", get_files, 0, MN_(NULL)},
+    {N_("/Transfer/_Put Files"), "<control>U", put_files, 0, MN_(NULL)},
     {N_("/L_og"), NULL, 0, 0, MN_("<Branch>")},
     {N_("/Log/tearoff"), NULL, 0, 0, MN_("<Tearoff>")},
     {N_("/Log/_Clear"), NULL, clearlog, 0, MS_(GTK_STOCK_CLEAR)},
-- 
1.8.5.3

Reply via email to