如何将键盘快捷键显示到由我的Chrome扩展程序创建的上下文菜单选项? [英] How can I display keyboard shortcuts to the context menu options created by my chrome extension?

查看:150
本文介绍了如何将键盘快捷键显示到由我的Chrome扩展程序创建的上下文菜单选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Chrome扩展程序增加了很少的上下文菜单选项,与默认情况下右键出现的其他选项一样,我也希望显示用于触发我的上下文菜单选项的键盘快捷键。另外,我可以使用内容脚本来实现键盘快捷键,但有没有其他方法可以做到这一点? 解决方案

关于显示快捷方式:这是一种古老的,令人遗憾的未受宠的功能请求。截至目前,这是不可能的。



关于键盘快捷键,有一个特定的API, 命令 API


My chrome extension adds few context menu options and like other options that appear by default on right click, I also wish to display the keyboard shortcuts to be used to trigger my context menu options. Also, I can make use of content scripts for keyboard shortcut implementation but is there any other way I can do it?

解决方案

Regarding display of shortcuts: it's an old, sadly untriaged feature request. As of now, it's not possible.

Regarding keyboard shortcuts, there is a specific API, commands API.

(Edit: fixed link URL)

这篇关于如何将键盘快捷键显示到由我的Chrome扩展程序创建的上下文菜单选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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