mprimi / portable-secret

Better privacy without special software

Home Page:https://mprimi.github.io/portable-secret/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] Press Enter/Return in the Textbox to Decrypt

Unkn0wnCreator opened this issue · comments

Hi,

You could add this to the end of the secret-template file, within the script tag, to allow that.

document.querySelector("#password").addEventListener("keyup", event => {
if(event.key !== "Enter") return;
decrypt()
event.preventDefault();
});

Thank you very much. I'll get to it eventually.

This PR addresses: #31