我正在为电子表格添加自定义菜单,并希望使用热键来访问菜单。 Alt-F热键可打开文件下拉菜单。我想定义Alt-B来激活我的下拉。有没有办法做到这一点?如果是这样,我可以在菜单项中添加热键吗?这是我用来添加菜单的代码:
function onOpen() {
var sheet = SpreadsheetApp.getActiveSpreadsheet();
var BoxwoodMenuItems = [{name : "Payments & Registeration Check-ins", functionName : "htmlRegistrationPayments"},
{name: "Assign Billets", functionName: "htmlAssignBillets"},
null, // Results in a line separator.
{name : "Get Remaining # of Allowed Sent Emails", functionName : "showRemainingEmails"},
];
sheet.addMenu("Boxwood", BoxwoodMenuItems);
};