chrome.commands keyboard shortcuts not working

前端 未结 10 1324
有刺的猬
有刺的猬 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-03 08:23

    Guys this is very obvious!

    • Ctrl+Shift+J
    • Ctrl+Shift+S
    • Ctrl+Shift+U

    All are built in browser functions!
    Which cannot be overridden!
    Just simply make your shortcut not a built in one.

    A list of Chrome browser shortcuts can be found here

    Example:

    • Ctrl+Shift+L

    Would work to trigger Browser_Action.

提交回复
热议问题