Keyboard Interaction

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
  • <ej-slider id='default' [values]='value'></ej-slider>
  • html
  • <script>
    
    import { Component } from '@angular/core';
    import { SliderModule } from '@syncfusion/ej2-ng-inputs';
    
    @Component({
        selector: 'control-content',
        templateUrl: 'app/components/slider/slider.component.html'',
    })
    export class DefaultSliderComponent {
        public value: number = [25,75]; 
    }
    </script>