Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use CRM Keyboard Shortcut in extension shortcuts #81

Open
esprout opened this issue Sep 20, 2023 · 1 comment
Open

How to use CRM Keyboard Shortcut in extension shortcuts #81

esprout opened this issue Sep 20, 2023 · 1 comment

Comments

@esprout
Copy link

esprout commented Sep 20, 2023

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
Copy link
Owner

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', () => { ... });.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants