SanderRonde / CustomRightClickMenu

A browser extension to add links and run scripts/stylesheets all from your right-click menu
https://chrome.google.com/webstore/detail/custom-right-click-menu/onnbmgmepodkilcbdodhfepllfmafmlj
MIT License
218 stars 33 forks source link

How to use CRM Keyboard Shortcut in extension shortcuts #81

Open esprout opened 12 months ago

esprout commented 12 months ago

What are the CRM Keyboard Shortcut options for in the keyboard shortcuts? I assigned them to shortcuts, but when I click press the shortcut, nothing happens. I was hoping they'd trigger the first level menu item.

SanderRonde commented 11 months ago

Yeah this works in a pretty unclear way. What you can do with them now is that you can create a script that runs in the background and those scripts can register keyboard handlers see docs. The idea is to make it possible for CRM items to run outside of a webpage context but still get triggered by keyboard shortcuts.

What you probably want to do though is to trigger some code when you press a shortcut on a page right? For that you can use the window.addEventListener('keydown', () => { ... });.