After this shortcuts remove part you adding following accelerators:
+ gtk_application_add_accelerator (GTK_APPLICATION (application), "<Ctrl>F", "win.find", NULL);
+ gtk_application_set_app_menu (GTK_APPLICATION (application), G_MENU_MODEL (gtk_builder_get_object (builder, "appmenu")));
}
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?
I listed the previous comment what shortcuts add the 0001-Port- to-GMenuModel- and-add- menu-bar. patch patch file. gtk_application _set_accels_ for_actions. patch patch file: 3.10.3/ shell/ev- application. c ======= ======= ======= ======= ======= ======= ======= ======= ==== 3.10.3. orig/shell/ ev-application. c 2014-02-07 14:01:07.235558100 +0000 3.10.3/ shell/ev- application. c 2014-02-07 14:01:07.231558100 +0000
Now, look what shortcuts to remove the 0002-Remove-
Index: evince-
=======
--- evince-
+++ evince-
@@ -1104,47 +1104,9 @@
{ "help", app_help_cb, NULL, NULL, NULL },
};
- const gchar *action_accels[] = { settings" , "<Ctrl>T", NULL, first-page" , "<Ctrl>Home", NULL, previous" , "<Ctrl><Shift>G", NULL, previous- page", "p", NULL, mode::fit- page", "f", NULL, mode::fit- width", "w", NULL, navigation" , "F7", NULL, KP_Subtract" , NULL, side-pane" , "F9", NULL, colors" , "<Ctrl>I", NULL,
- "app.open", "<Ctrl>O", NULL,
- "win.open-copy", "<Ctrl>N", NULL,
- "win.save-copy", "<Ctrl>S", NULL,
- "win.print", "<Ctrl>P", NULL,
- "win.copy", "<Ctrl>C", "<Ctrl>Insert", NULL,
- "win.select-all", "<Ctrl>A", NULL,
- "win.save-
- "win.go-
- "win.go-last-page", "<Ctrl>End", NULL,
- "win.add-bookmark", "<Ctrl>D", NULL,
- "win.close", "<Ctrl>W", NULL,
- "win.escape", "Escape", NULL,
- "win.find", "<Ctrl>F", "slash", NULL,
- "win.find-next", "<Ctrl>G", NULL,
- "win.find-
- "win.select-page", "<Ctrl>L", NULL,
- "win.go-backward", "<Shift>Page_Up", NULL,
- "win.go-forward", "<Shift>Page_Down", NULL,
- "win.go-next-page", "n", NULL,
- "win.go-
- "win.sizing-
- "win.sizing-
- "win.open-menu", "F10", NULL,
- "win.caret-
- "win.zoom-in", "plus", "<Ctrl>plus", "KP_Add", "<Ctrl>KP_Add", NULL,
- "win.zoom-out", "minus", "<Ctrl>minus", "KP_Subtract", "<Ctrl>
- "win.show-
- "win.fullscreen", "F11", NULL,
- "win.presentation", "F5", NULL,
- "win.rotate-left", "<Ctrl>Left", NULL,
- "win.rotate-right", "<Ctrl>Right", NULL,
- "win.inverted-
- "win.reload", "<Ctrl>R", NULL,
- NULL
After this shortcuts remove part you adding following accelerators: _add_accelerato r (GTK_APPLICATION (application), "<Ctrl>F", "win.find", NULL);
gtk_ application_ set_app_ menu (GTK_APPLICATION (application),
G_MENU_ MODEL (gtk_builder_ get_object (builder, "appmenu")));
+ gtk_application
+
}
- g_object_unref (builder); _add_accelerato r (GTK_APPLICATION (application), "F7", "win.caret- navigation" , NULL);
+ gtk_application
The shell/menus.ui file you added following accelerators: "yes">_ Open</attribute > >app.open< /attribute> ><Ctrl& gt;O</attribute > "yes">_ Help</attribute > >app.help< /attribute> >F1</attribute> "yes">Side _Pane</attribute> >win.show- side-pane< /attribute> >F9</attribute> "yes">_ Fullscreen< /attribute> >win.fullscreen </attribute> >F11</attribute > "yes">Pre_ sentation< /attribute> >win.presentati on</attribute> >F5</attribute> "yes">Rotate _Left</attribute> >win.rotate- left</attribute > ><Ctrl& gt;Left< /attribute> "yes">Rotate _Right</attribute> >win.rotate- right</ attribute> ><Ctrl& gt;Right< /attribute> "yes">Zoom _In</attribute> >win.zoom- in</attribute> ><Ctrl& gt;plus< /attribute> "yes">Zoom _Out</attribute> >win.zoom- out</attribute> ><Ctrl& gt;minus< /attribute> "yes">_ Inverted Colors</attribute> >win.inverted- colors< /attribute> ><Ctrl& gt;I</attribute > "yes">_ Reload< /attribute> >win.reload< /attribute> ><Ctrl& gt;R</attribute > "yes">_ Open…</ attribute> >app.open< /attribute> ><Ctrl& gt;O</attribute > "yes">Op_ en a Copy</attribute> >win.open- copy</attribute > ><Ctrl& gt;N</attribute > "yes">_ Recent< /attribute> "yes">_ Save a Copy…</attribute> >win.save- copy</attribute > ><Ctrl& gt;S</attribute > "yes">Send _To…</attribute> "yes">_ Print…< /attribute> >win.print< /attribute> ><Ctrl& gt;P</attribute > "yes">P_ roperties… </attribute> >win.show- properties< /attribute> ><Alt& gt;Return< /attribute> "yes">_ Copy</attribute > >win.copy< /attribute> ><Ctrl& gt;C</attribute > "yes">Select _All</attribute> >win.select- all</attribute> ><Ctrl& gt;A</attribute > "yes">_ First Page</attribute> >win.go- first-page< /attribute> ><Ctrl& gt;Home< /attribute> "yes">_ Last Page</attribute> >win.go- last-page< /attribute> ><Ctrl& gt;End< /attribute> "yes">_ Add Bookmark< /attribute> >win.add- bookmark< /attribute> ><Ctrl& gt;D</attribute > "yes">_ Close</ attribute> >win.close< /attribute> ><Ctrl& gt;W</attribute >
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
</section>
<section>
@@ -33,6 +34,7 @@
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
</section>
</menu>
@@ -52,36 +54,43 @@
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
</section>
<section>
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
</section>
<section>
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
</section>
<section>
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
</section>
<section>
@@ -92,12 +101,14 @@
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
</section>
<section>
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
</section>
</menu>
@@ -107,10 +118,12 @@
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
<item>
<attribute name="label" translatable=
@@ -120,6 +133,7 @@
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
<item>
<attribute name="label" translatable=
@@ -132,22 +146,26 @@
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
</section>
<section>
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
</section>
<section>
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
</section>
<section>
@@ -160,22 +178,26 @@
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
</section>
<section id="bookmarks">
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
</section>
<section>
<item>
<attribute name="label" translatable=
<attribute name="action"
+ <attribute name="accel"
</item>
</section>
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
<section>