Skip to content

Commit

Permalink
fixed keyboard inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
JediWattson committed Dec 6, 2022
1 parent 8d05018 commit 337dbf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/AttachmentCarousel/CarouselActions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ class Carousel extends React.Component {
*/
handleKeyPress(e) {
if (e.key === 'ArrowLeft') {
this.props.onCycleThroughAttachments(-1);
this.props.onCycleThroughAttachments(1);
}
if (e.key === 'ArrowRight') {
this.props.onCycleThroughAttachments(1);
this.props.onCycleThroughAttachments(-1);
}
}

Expand Down

0 comments on commit 337dbf2

Please sign in to comment.