I listed the previous comment what shortcuts add the 0001-Port-to-GMenuModel-and-add-menu-bar.patch patch file. Now, look what shortcuts to remove the 0002-Remove-gtk_application_set_accels_for_actions.patch patch file: Index: evince-3.10.3/shell/ev-application.c =================================================================== --- evince-3.10.3.orig/shell/ev-application.c 2014-02-07 14:01:07.235558100 +0000 +++ evince-3.10.3/shell/ev-application.c 2014-02-07 14:01:07.231558100 +0000 @@ -1104,47 +1104,9 @@ { "help", app_help_cb, NULL, NULL, NULL }, }; - const gchar *action_accels[] = { - "app.open", "O", NULL, - "win.open-copy", "N", NULL, - "win.save-copy", "S", NULL, - "win.print", "P", NULL, - "win.copy", "C", "Insert", NULL, - "win.select-all", "A", NULL, - "win.save-settings", "T", NULL, - "win.go-first-page", "Home", NULL, - "win.go-last-page", "End", NULL, - "win.add-bookmark", "D", NULL, - "win.close", "W", NULL, - "win.escape", "Escape", NULL, - "win.find", "F", "slash", NULL, - "win.find-next", "G", NULL, - "win.find-previous", "G", NULL, - "win.select-page", "L", NULL, - "win.go-backward", "Page_Up", NULL, - "win.go-forward", "Page_Down", NULL, - "win.go-next-page", "n", NULL, - "win.go-previous-page", "p", NULL, - "win.sizing-mode::fit-page", "f", NULL, - "win.sizing-mode::fit-width", "w", NULL, - "win.open-menu", "F10", NULL, - "win.caret-navigation", "F7", NULL, - "win.zoom-in", "plus", "plus", "KP_Add", "KP_Add", NULL, - "win.zoom-out", "minus", "minus", "KP_Subtract", "KP_Subtract", NULL, - "win.show-side-pane", "F9", NULL, - "win.fullscreen", "F11", NULL, - "win.presentation", "F5", NULL, - "win.rotate-left", "Left", NULL, - "win.rotate-right", "Right", NULL, - "win.inverted-colors", "I", NULL, - "win.reload", "R", NULL, - NULL After this shortcuts remove part you adding following accelerators: + gtk_application_add_accelerator (GTK_APPLICATION (application), "F", "win.find", NULL); + gtk_application_set_app_menu (GTK_APPLICATION (application), G_MENU_MODEL (gtk_builder_get_object (builder, "appmenu"))); } - g_object_unref (builder); + gtk_application_add_accelerator (GTK_APPLICATION (application), "F7", "win.caret-navigation", NULL); The shell/menus.ui file you added following accelerators: _Open app.open + <Ctrl>O
@@ -33,6 +34,7 @@ _Help app.help + F1
@@ -52,36 +54,43 @@ Side _Pane win.show-side-pane + F9
_Fullscreen win.fullscreen + F11 Pre_sentation win.presentation + F5
Rotate _Left win.rotate-left + <Ctrl>Left Rotate _Right win.rotate-right + <Ctrl>Right
Zoom _In win.zoom-in + <Ctrl>plus Zoom _Out win.zoom-out + <Ctrl>minus
@@ -92,12 +101,14 @@ _Inverted Colors win.inverted-colors + <Ctrl>I
_Reload win.reload + <Ctrl>R
@@ -107,10 +118,12 @@ _Open… app.open + <Ctrl>O Op_en a Copy win.open-copy + <Ctrl>N _Recent @@ -120,6 +133,7 @@ _Save a Copy… win.save-copy + <Ctrl>S Send _To… @@ -132,22 +146,26 @@ _Print… win.print + <Ctrl>P
P_roperties… win.show-properties + <Alt>Return
_Copy win.copy + <Ctrl>C Select _All win.select-all + <Ctrl>A
@@ -160,22 +178,26 @@ _First Page win.go-first-page + <Ctrl>Home _Last Page win.go-last-page + <Ctrl>End
_Add Bookmark win.add-bookmark + <Ctrl>D
_Close win.close + <Ctrl>W
Note: CTRL+LEFT and CTRL+RIGHT keystrokes is normal word navigation keystrokes (goto next or previous word) if the caret navigation is enabled. Please not overwrite this general keystrokes if affecting this keystrokes the caret navigation. If future all accelerators will be working, not will be conflicting this two accelerators the general caret navigation keybindings? Attila