Skip to content

Commit

Permalink
swapping keyboard arrow pressing in rtl
Browse files Browse the repository at this point in the history
in rtl the keyboard left arrow should swipe next and the right arrow should swipe previous
  • Loading branch information
boynet committed Jan 25, 2016
1 parent 15ac6a4 commit 9997c7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slick/slick.js
Original file line number Diff line number Diff line change
Expand Up @@ -1425,13 +1425,13 @@
if (event.keyCode === 37 && _.options.accessibility === true) {
_.changeSlide({
data: {
message: 'previous'
message: _.options.rtl === true ? 'next' : 'previous'
}
});
} else if (event.keyCode === 39 && _.options.accessibility === true) {
_.changeSlide({
data: {
message: 'next'
message: _.options.rtl === true ? 'previous' : 'next'
}
});
}
Expand Down

0 comments on commit 9997c7b

Please sign in to comment.