For users who like the portable version of GnuCash:
I found two files with the same name and it seems the first one does the trick:
installation-root\Data\GNCDataHome\accelerator-map
installation-root\App\Gnucash\share\gnucash\ui\accelerator-map
I did some simple tests with "edit account" which I often need to tweak (colors, custom currency) when setting up a system:
; (gtk_accel_path "<Actions>/GncPluginPageAccountTreeActions/EditEditAccountAction" "<Primary>e")
I learnt, that I have to stick to letters. <Primary># did not work.
note to self: remember to remove the initial ; to un-comment or no joy!
another note to self:
While digging through the accelerator-map file, I noticed for the first time (after years of GnuCash use) that there is also a menu-entry called "Édition" (in French) which is somewhat similar to the right-click menu. But here some of the keyboard-shortcuts are displayed. Bingo.
final note, TL/DR:
I am using the brand new version 5.0 in portable flavour for my tests today.