chrome.commands keyboard shortcuts not working

前端 未结 10 1297
有刺的猬
有刺的猬 2020-12-03 07:57

I am trying to add some keyboard shortcuts to my Chrome extension, specifically to allow the user to use hotkeys to open up a browser action/popup. I\'ve read the d

10条回答
  •  不思量自难忘°
    2020-12-03 08:00

    As you can see in the source code here: https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/extensions/api/commands/command_service.cc&l=303&sq=package:chromium&rcl=1409677023

    The key binding update is only run when OnExtensionWillBeInstalled callback is triggered.

    So you need to uninstall and reinstall your local extension to see the default keyboard command appear in : chrome://extensions/configureCommands

提交回复
热议问题