I have created a keyboard-shortcut plugin module type. I have trouble with some of its behaviour.
First of all, the description element seems to absolutely require the key attribute, even though the documentation seems to claim this is optional. Without the attribute, the module fails to load.
Second, the key attribute is supposed to be the i18n key of the shortcut key's description visible in the "Keyboard Shortcuts" dialog. But even though I included and i18n resource with the plugin, and it works for other plugin modules, only the key is displayed (verbatim) in the dialog, and not its corresponding text. I have to resort to cheating to make this work (well, sort of work, the plugin is not internationalisable now). In effect, I have to use this ugly code: