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

Have keyboard shortcut for inserting version content #11

Open
gregwhitworth opened this issue Apr 8, 2019 · 1 comment
Open

Have keyboard shortcut for inserting version content #11

gregwhitworth opened this issue Apr 8, 2019 · 1 comment

Comments

@gregwhitworth
Copy link
Contributor

When working on reductions/triaging it's annoying to have to constantly go back and forth across the versions. It would be nice to insert the information that we have at the current caret position on a keyboard combo.

This isn't really high pri and has a few interesting questions regarding how best to implement it:

  • Content script is necessary to capture keyboard events on the current document (unless someone knows about an event that I don't - which is entirely possible), is there any issues with this?
  • Should we duplicate the code of the finding the browser version information displayed to the user or should we do messaging and convert the current logic to a method?
  • What keyboard combination is useful but uncommon across sites as to not have conflicts?

After the user presses the keyboard combo (tentatively choosing Ctrl+Shift+V) it will find the current caret position utilizing selection.createRange() to insert the OS/Version content into the text area.

@ericlaw1979
Copy link
Owner

You can set browser shortcut keys that invoke functions in your extension (See edge://extensions/shortcuts for examples).

CTRL+Shift+V is meaningful in Chrome's web platform (it's "Paste without formatting.")

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