Skip to content

Commit a6ce22b

Browse files
authored
Merge pull request #17 from edwinjmenendez/keyCommands
Fixed key command bugs
2 parents 4f0a948 + 9f03d31 commit a6ce22b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/containers/ActionContainer.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ function ActionContainer() {
5858
// enter key pressed
5959
else if (e.keyCode === 13) {
6060
e.stopPropagation();
61+
e.preventDefault(); // needed or will trigger onClick right after
6162
dispatch(changeSlider(currIndex));
6263
}
6364
}

0 commit comments

Comments
 (0)