GNOME Bugzilla – Bug 761076
Add keyboard shortcuts for edit and export
Last modified: 2016-01-27 10:50:52 UTC
It would be nice to add keyboard shortcuts / accelerators for the edit and export actions. Since both words start with an 'e' we have to think of something different for one of them. We can start with ctrl+e for edit, and ctrl+x for export.
Created attachment 319787 [details] [review] Shortcut for Edit & Export
Review of attachment 319787 [details] [review]: Thanks for the nice patch. It works as expected. ::: src/photos-application.c @@ +1289,3 @@ const gchar *delete_accels[3] = {"Delete", "KP_Delete", NULL}; + const gchar *edit_accels[2] = {"<Primary>e", NULL}; + const gchar *export_accels[2] = {"<Primary>x", NULL}; Nitpick: s/export/save/ to match the name of the action. ::: src/photos-preview-menu.ui @@ +9,3 @@ <attribute name="action">app.save-current</attribute> <attribute name="label" translatable="yes">Export…</attribute> + <attribute name="accel"><Primary>x</attribute> This bit is actually not needed. I know we do specify the keyboard accelerator in this file in a few cases, but I think we can remove them. It is enough to add them via gtk_application_set_accels_for_action.
Created attachment 319810 [details] [review] application: Add shortcuts for edit and export I made the above adjustments and pushed to master.
Thanks for your efforts!