Skip to content

Commit

Permalink
refactor(Carousel) replace keyCode with key
Browse files Browse the repository at this point in the history
  • Loading branch information
gselderslaghs committed Dec 13, 2024
1 parent a965395 commit 3b0aee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/carousel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export class Carousel extends Component<CarouselOptions> {

_handleIndicatorKeyPress = (e: KeyboardEvent) => {
e.stopPropagation();
if (e.keyCode === 13) {
if (Utils.keys.ENTER.includes(e.key)) {
this._handleIndicatorInteraction(e);
}
}
Expand Down

0 comments on commit 3b0aee8

Please sign in to comment.