diff --git a/src/main.js b/src/main.js index 273f3e4..9cf3fc6 100644 --- a/src/main.js +++ b/src/main.js @@ -605,6 +605,12 @@ privateTgl.addEventListener('click', () => { privateKeyInput.value = localStorage.getItem('private_key'); pubKeyInput.value = localStorage.getItem('pub_key'); +privateKeyInput.addEventListener('paste', (event) => { + if (!pubKeyInput.value && event.clipboardData) { + pubKeyInput.value = getPublicKey(event.clipboardData.getData('text')); + } +}); + document.body.addEventListener('click', (e) => { const container = e.target.closest('[data-append]'); if (container) {