Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
39zde committed Oct 10, 2024
1 parent 07243fe commit 79cb9ad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ function checkBrowserCompatibility() {
function keyDownClicker(event) {
event.preventDefault();
if (event.key === "Enter") {
let inputElement = this.queySelector("input");
let labelElement = event.target;
let inputElement = labelElement.queySelector("input");
console.log(labelElement);
console.log(inputElement);
if (inputElement) {
inputElement.click();
} else {
Expand Down Expand Up @@ -122,7 +125,7 @@ function addKeyShortcuts(event, fileElement, compressionElement, actionElement)
actionElement.click();
break;
default:
break;
return;
}
}

Expand Down

0 comments on commit 79cb9ad

Please sign in to comment.