I am in the process of integrating a custom menu into my spreadsheet and I’m interested in assigning a hotkey for its access. Currently, pressing Alt-F invokes the File menu. I would like to set Alt-B for my custom menu. Is there a method to achieve this? Additionally, can I assign hotkeys to specific items within the menu? Below is the script I am using to create the custom menu:
function initializeMenu() {
var activeSheet = SpreadsheetApp.getActiveSpreadsheet();
var customMenuOptions = [{name: 'Payments & Registration Check', functionName: 'openPaymentsRegistration'},
{name: 'Allocate Billets', functionName: 'allocateBillets'},
null, // This adds a separator line
{name: 'Show Remaining Allowed Emails', functionName: 'displayRemainingEmails'},
];
activeSheet.addMenu('Custom Menu', customMenuOptions);
};