Unplanned
Last Updated: 24 Jul 2025 06:49 by Paweł Korczak
Paweł Korczak
Created on: 24 Jul 2025 06:49
Category: Window
Type: Feature Request
0
Add built-in support for ENTER and ESC in kendo.prompt

Currently in kendo.prompt, the user can accept or decline the entered value in the popup only by clicking on the 'OK' and ' Cancel' buttons.

I know I can workaround that behavior as demonstrated below - https://dojo.telerik.com/pRIUUdCh 

$('[role="alertdialog"]').on('keydown', function(event){
        if(event.keyCode == 13){
          $('[role="alertdialog"] .k-button:first-child').focus();
          $('[role="alertdialog"] .k-button:first-child').click();

        } else if (event.keyCode == 27){
          $('[role="alertdialog"] .k-actions .k-button').eq(1).click()
        }
      })

However, I would like to have a built-in possibility to accept and cancel through the Enter and Escape keys.

 

0 comments