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

Use keyboard shortcuts to paste into active tab #46

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aanand3
Copy link
Contributor

@aanand3 aanand3 commented Jan 9, 2025

For Issue #43

One limitation from the docs for chrome.commands:

An extension can have many commands, but may specify at most four suggested keyboard shortcuts. The user can manually add more shortcuts from the chrome://extensions/shortcuts dialog.

This would mean we can't 'reserve' more than 4 shortcuts. Instead, the user would have to go to the dialog to manually assign shortcuts to the different commands, and that page looks like this (note how it will preset/suggest four shortcuts but the rest of the commands are unmapped):
Screenshot 2025-01-10 at 12 04 40 AM

So instead of 5 shortcuts, I can make the extension suggest up to 4 of them. And then add more that can be manually mapped if users want that. Open to suggestions, but I have some ideas!

Got that functionality working and got it to paste into the active tab. Now need to add some mapping between entry and shortcut. More to follow in the coming days!

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

Successfully merging this pull request may close these issues.

1 participant