Skip to content

Latest commit

 

History

History
124 lines (88 loc) · 3.35 KB

File metadata and controls

124 lines (88 loc) · 3.35 KB
layout post
title keyboard interaction
description keyboard interaction
platform AngularJS
control rotator
documentation ug

Keyboard interaction

The Rotator property e-allowkeyboardnavigation turns on keyboard interaction with the Rotator items. You must set this property to ‘true’ to access the keyboard shortcuts. The default value is ‘true’. The value set to this property is Boolean.

The entire Rotator commands are accessed through the keyboard by specifying the Keyboard Shortcut in the following table.

Keyboard shortcuts

KeyboardShortcut Function
Alt + j Focuses the control
UP Navigates up and left.
Down Navigates down and right.
Left Navigates up and left.
Right Navigates down and right.
Home Navigates to the starting item.
End Navigates to the ending item.
Enter Selects the focused item
You can refer the following code example for keyboard navigation.

{% highlight html %}

{% endhighlight %}

{% highlight js %}

<script> angular.module('rotatApp', ['ejangular']).controller('RotatCtrl', function ($scope) { }); $(function () { //Control focus key $(document).on("keydown", function (e) { if (e.altKey && e.keyCode === 74) { // j- key code. $("#slidercontent")[0].focus(); } }); }); </script>

{% endhighlight %}

{% highlight css %}

<style type="text/css" class="cssStyles"> .e-rotator-wrap .e-thumb .e-thumb-items li img { width: 130px; height: 82px; } </style>

{% endhighlight %}