Google文档自定义菜单热键(快捷键/字符,如“文件”菜单的“F”或保存的“S”) [英] Google Docs Custom Menu Hotkey (accelerator key/character, like "F" for File menu, or "S" for Save)

查看:387
本文介绍了Google文档自定义菜单热键(快捷键/字符,如“文件”菜单的“F”或保存的“S”)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在向电子表格添加自定义菜单,并希望使用热键访问菜单。 Alt-F热键打开文件下拉菜单。我想定义Alt-B来激活我的下拉菜单。有没有办法做到这一点?如果是这样,我可以添加热键到菜单项吗?这里是我用来添加菜单的代码:

 函数onOpen(){
var sheet = SpreadsheetApp。 getActiveSpreadsheet();

var BoxwoodMenuItems = [{name:Payments& Register Check-ins,functionName:htmlRegistrationPayments},
{name:Assign Billets,functionName:htmlAssignBillets} ,
null,//以行分隔符结果。
{name:获取允许发送的电子邮件的剩余数量,functionName:showRemainingEmails},
];
sheet.addMenu(Boxwood,BoxwoodMenuItems);
};


解决方案

目前无法设置自定义键盘快捷键/ hotkeys Google文件/表格/表单/幻灯片。



参考资料


  • 官方指南


    I am adding a custom menu to a spreadsheet and would like to use a hotkey to access the menu. The Alt-F hotkey opens the File pulldown menu. I would like to define Alt-B to activate my pulldown. Is there a way to do this? If so, can I then add hotkeys to the menu items? Here is the code I am using to add the menu:

    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);
    };
    

    解决方案

    At this time it's not possible to set custom keyboard shortcuts / hotkeys Google Docs / Sheets / Forms / Slides.

    References

    这篇关于Google文档自定义菜单热键(快捷键/字符,如“文件”菜单的“F”或保存的“S”)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆