Feature: Add keyboard_shortcut property to Gimp.Procedure
Operating System: All
Description of the feature
Add methods to explicitly assign and obtain keyboard shortcuts to GimpProcedure, similar to how Menu Labels can be added. Plugin writers could then assign a default shortcut for the behaviors of their plugins.
Use cases
The purpose of some plugins is to make a task easier or faster. It is faster for users to perform a repeated task when there is a keyboard shortcut, and they can avoid navigating a GUI menu. In Gimp 2.99 Unstable Development Version commit 0a811ff, mnemonics can be included by prefixing an underscore to the menu label, but there does not seem to be a way to assign keyboard shortcuts. Perhaps the API could look similar to the one for menu_labels. For example:
void
gimp_procedure_set_keyboard_shortcut (
GimpProcedure* procedure,
const gchar* keyboard_shortcut
)
const gchar*
gimp_procedure_get_keyboard_shortcut (
GimpProcedure* procedure
)
And then in the Python binding would look like procedure.menu_label