我正在编写一个 Chrome 扩展程序,我需要知道何时按住 Shift 键单击其徽章图标:
PS。我的扩展程序会在定期单击徽章时显示一个弹出窗口:
"browser_action": {
"default_icon": {
"19": "images/icon19.png",
"38": "images/icon38.png"
},
"default_title": "__MSG_main_title__",
"default_popup": "popup.html"
},
最佳答案
简而言之,你不能。
稍微长一点,有一个有效的功能请求:https://code.google.com/p/chromium/issues/detail?id=61445
关于javascript - 如何知道我的 Chrome 扩展程序的徽章图标是否已按 Shift 键单击?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26067928/