From 88a8a4d822428c26e183dae080a66f94386f7283 Mon Sep 17 00:00:00 2001 From: Andre Bulatov Date: Tue, 9 Feb 2016 03:15:00 -0500 Subject: [PATCH] Implemented key navigation for Main Stage via custom.js $(document.documentElement).keyup(function(event) { if (event.keyCode == 37) { owl.data('owlCarousel').prev(); } else if (event.keyCode == 39) { owl.data('owlCarousel').next(); } }); --- wp-content/themes/mag-wp/js/custom.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wp-content/themes/mag-wp/js/custom.js b/wp-content/themes/mag-wp/js/custom.js index 9cfff2b..bec2606 100644 --- a/wp-content/themes/mag-wp/js/custom.js +++ b/wp-content/themes/mag-wp/js/custom.js @@ -81,6 +81,13 @@ jQuery( document ).ready( function( $ ) { owl.hide(); setTimeout( function(){owl.css({'left' : "0px"}).fadeIn(1000);}, 500); } + $(document.documentElement).keyup(function(event) { + if (event.keyCode == 37) { + owl.data('owlCarousel').prev(); + } else if (event.keyCode == 39) { + owl.data('owlCarousel').next(); + } + });