Keyboard Interaction

28 Jun 20171 minute to read

You can use Keyboard shortcut keys as an alternative to the mouse for using the Slider widget. All options in the Slider can be accessed using keyboard shortcuts. The following table explains the keyboard shortcut keys and the operations that can be performed using the corresponding keys.

List of Keyboard shortcuts

Shortcut Key Description
Alt + j Focuses into the Slider handle
Up/Right Increments the Slider value
Down/Left Decrements the Slider value
Home Slider handle moves to the start value
End Slider handle moves to the end value
Esc Focuses out from the Slider handle

Configure keyboard interaction

The following steps explains you on how to enable keyboard support in Slider.

In an HTML page, specify the <div> elements to render the Range Slider.

  • HTML
  • <div class="txt">range Slider</div>
    <div id="rangeSlider" ej-slider e-slidertype="Range" e-values="value"></div>
  • angular.module('sliderApp', ['ejangular'])
        .controller('SliderCtrl', function ($scope) {
            $scope.value = [25, 75]
        $(document).on("keydown", function (e) {
        if (e.altKey && e.keyCode === 74) { // j- key code.
            $("#rangeSlider a")[0].focus();

    Run the sample and press, Alt + j keys to set focus in the Slider handle and you can handle the Slider operations using the keyboard shortcut keys.