I would like to add a hotkey or keyboard shortcut to open a Mathematica Palettte, like e.g. the Basic Math Assistant. I found a number of questions like this one or this one with answers suggesting to make changes to the KeyEventTranslations.tr file. But I could not figure out how to apply these ideas to make a shortcut for a general menu command.
The path of the file KeyEventTranslations.tr can be found with the following command
FileNameJoin[{$InstallationDirectory, "SystemFiles/FrontEnd/TextResources", $OperatingSystem}]
For example, on Windows, the file location would be like
"C:\Program Files\Wolfram Research\Mathematica\12.2\SystemFiles\FrontEnd\TextResources\Windows"
FrontEndTokenExecuteshould save a few keystrokes by combiningFrontEndExecute[FrontEndToken[“name”]]. – MarcoB Jan 17 '21 at 22:43KeyEventTranslations.trfile. – RungeC Jan 17 '21 at 22:51