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

Add copy actions #8

Merged
merged 2 commits into from
Apr 21, 2018
Merged

Add copy actions #8

merged 2 commits into from
Apr 21, 2018

Conversation

erayd
Copy link
Collaborator

@erayd erayd commented Apr 21, 2018

No description provided.

@erayd
Copy link
Collaborator Author

erayd commented Apr 21, 2018

Rebased on master.

case "KeyC":
if (e.ctrlKey) {
result.doAction(
e.shiftKey ? "copyUsername" : "copyPassword"
Copy link
Member

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");
Copy link
Member

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.

See browserpass/browserpass-legacy#241 (comment)

Copy link
Collaborator Author

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.

@erayd erayd merged commit 65f6748 into browserpass:master Apr 21, 2018
@erayd erayd deleted the copy branch April 21, 2018 10:19
fkneist pushed a commit to fkneist/browserpass-extension that referenced this pull request Feb 12, 2022
* Add copy actions
* Add hotkeys to search box
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants