Keyboard Navigation

By default, the keyboard navigation of the DatePicker is enabled.

The DatePicker supports the following keyboard shortcuts:

Shortcut Description
Alt+Down Arrow Opens the popup and moves the focus to the displayed calendar.
Alt+Up Arrow Closes the popup and moves the focus to the input element.
Esc Closes the popup and moves the focus to the input element.
<div id="vueapp" class="vue-app">
    <div class="example-wrapper">
        <datepicker
            ref="picker"
            :default-value="defaultValue"
         ></datepicker>
        <p>(use Alt+<code>↓</code> to open the calendar, <code>←</code> and <code>→</code> to navigate, <code>↑</code> to increment and <code>↓</code> to decrement the value)</p>
    </div>
</div>
import { DatePicker } from '@progress/kendo-vue-dateinputs';
Vue.component('datepicker', DatePicker);

new Vue({
    el: '#vueapp',
    mounted() {
        this.$refs.picker.focus();
    },
    data: function() {
        return {
            defaultValue: new Date()
        };
    }
});

Navigation Scenarios

When the popup of the DatePicker is opened, it adopts the same keyboard shortcuts as the keyboard shortcuts of the Calendar.

When the input of the DatePicker is focused, it adopts the same keyboard shortcuts as the keyboard shortcuts of the DateInput.

In this article