_this.changeSlide(ltr, $slide, idx);
});
}
-
- this.$wrapper.add(this.$bullets).on('keydown.zf.orbit', function(e) {
- // handle keyboard event with keyboard util
- Foundation.Keyboard.handleKey(e, 'Orbit', {
- next: function() {
- _this.changeSlide(true);
- },
- previous: function() {
- _this.changeSlide(false);
- },
- handled: function() { // if bullet is focused, make sure focus moves
- if ($(e.target).is(_this.$bullets)) {
- _this.$bullets.filter('.is-active').focus();
+
+ if (this.options.accessible) {
+ this.$wrapper.add(this.$bullets).on('keydown.zf.orbit', function(e) {
+ // handle keyboard event with keyboard util
+ Foundation.Keyboard.handleKey(e, 'Orbit', {
+ next: function() {
+ _this.changeSlide(true);
+ },
+ previous: function() {
+ _this.changeSlide(false);
+ },
+ handled: function() { // if bullet is focused, make sure focus moves
+ if ($(e.target).is(_this.$bullets)) {
+ _this.$bullets.filter('.is-active').focus();
+ }
}
- }
+ });
});
- });
+ }
}
}