-
Notifications
You must be signed in to change notification settings - Fork 53
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
Add copy actions #8
Conversation
Rebased on master. |
case "KeyC": | ||
if (e.ctrlKey) { | ||
result.doAction( | ||
e.shiftKey ? "copyUsername" : "copyPassword" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the original browserpass extension copy username was Shift+C
, not Ctrl+Shift+C
. I don't mind changing if you prefer this one (I actually like Ctrl+Shift+C
more), just want to make sure it is a conscious decision on your side too.
}, | ||
{ once: true } | ||
); | ||
document.execCommand("copy"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks too easy to be true 😃 Very interesting approach!
Just keep in mind, Firefox is special, it doesn't allow copying from background page, so we have to also send it to the popup and copy from the popup. I added this to the TODO document in case you want to confirm and deal with it separately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's annoying - didn't realise that. TODO was a good idea.
* Add copy actions * Add hotkeys to search box
No description provided.