Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Now you can press enter key instead of replaceBtn to directly replace words!
  • Loading branch information
BlazeInferno64 authored Jul 10, 2024
1 parent 2e17c62 commit 1ea78b9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions public/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,10 @@ searchWordInput.addEventListener("input", (e) => {
console.error(error);
}
});


replaceWordInput.addEventListener("keydown", (e) => {
if(e.keyCode === 13) {
return replaceBtn.click();
}
})

0 comments on commit 1ea78b9

Please sign in to comment.