chrome.commands keyboard shortcuts not working

前端 未结 10 1292
有刺的猬
有刺的猬 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:08

    As per documentation:

    The user is free to designate any shortcut as global using the UI in chrome://extensions \ Keyboard Shortcuts, but the extension developer is limited to specifying only Ctrl+Shift+[0..9] as global shortcuts. This is to minimize the risk of overriding shortcuts in other applications since if, for example, Alt+P were to be allowed as global, the printing shortcut might not work in other applications.

提交回复
热议问题