kendoKeydown
Triggered when the user presses a keyboard key while the Stepper is focused.
The event handler function context (available via the this keyword) will be set to the widget instance.
Event Data
e.sender kendo.ui.Stepper
The widget instance which fired the event.
e.preventKendoKeydown Boolean
If set to true prevents the default Stepper keydown logic.
e.preventDefault Function
If invoked cancels the default action that belongs to the keydown event.
Example - subscribe to the "kendoKeydown" event during initialization
<nav id="stepper"></nav>
<script>
$("#stepper").kendoStepper({
steps: [
{ label: "Step 1" },
{ label: "Step 2" },
{ label: "Step 3" }
],
kendoKeydown: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(e.keyCode);
}
});
</script>
Example - subscribe to the "kendoKeydown" event after initialization
<nav id="stepper"></nav>
<script>
$("#stepper").kendoStepper({
steps: [
{ label: "Step 1" },
{ label: "Step 2" },
{ label: "Step 3" }
],
});
var widget = $("#stepper").data("kendoStepper");
widget.bind("kendoKeydown", function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(e.keyCode);
});
</script>