keydown

Fires when the user depresses a keyboard key. Triggered multiple times if the user holds the key down.

Example - subscribe to the "keydown" event during initialization

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
  keydown: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log("keydown : keyCode=",e.keyCode);
  }
});
</script>

Example - subscribe to the "keydown" event after initialization

<textarea id="editor"></textarea>
<script>
function editor_keydown(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log("keydown : keyCode=", e.keyCode);
}
$("#editor").kendoEditor();
var editor = $("#editor").data("kendoEditor");
editor.bind("keydown", editor_keydown);
</script>
In this article