Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Kordian-Napoleon authored Dec 23, 2024
1 parent 74984fb commit e7fd318
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
});
});

0 comments on commit e7fd318

Please sign in to comment.