diff --git a/script.js b/script.js index 3df73e2..a29a2e9 100644 --- a/script.js +++ b/script.js @@ -172,4 +172,10 @@ document.addEventListener('DOMContentLoaded', () => { // Nasłuchiwanie kliknięcia na elementy encryptSpan.addEventListener('click', () => selectOption('encrypt')); decryptSpan.addEventListener('click', () => selectOption('decrypt')); + + document.addEventListener('keydown', (event) => { + if (event.key === 'Enter') { + startButton.click(); // Kliknięcie przycisku start, gdy Enter jest naciśnięty + } + }); });