Keyboard navigation?
Permalink Browser Info Environment
Hi,
would it be possible to enable keyboard navigation?
would it be possible to enable keyboard navigation?
Type: | Discussion |
---|---|
Status: | Resolved |
Thanks so much for that information!
Just to help others, who are interested in enabling keyboard navigation, this is what i did:
I created a custom block template, consisting of a copy of view.php and a file view.js with the following code:
Now keyboard navigation works as desired.
I created a custom block template, consisting of a copy of view.php and a file view.js with the following code:
jQuery(document.documentElement).keyup(function (event) { var owl = jQuery(".owl-carousel"); // handle cursor keys if (event.keyCode == 37) { // go left owl.trigger('owl.prev'); } else if (event.keyCode == 39) { // go right owl.trigger('owl.next'); } });
Now keyboard navigation works as desired.
Thank you Michael for sharing.
Cheers,
Cheers,
There is no option for navigating with the keyboard in Add-on, yet you can easily add the required code to your js file. Check this topic will help you:
https://stackoverflow.com/questions/28856300/owl-carousel-keyboard-n...