hotkey issue

hi webix team,
I have apply hotkey(enter) to ok button ,After changing the value of combo box using “enter” button on keybord, ok button event is get fire, but i want that event to get fire after appearing textbox & button (which is hidden initially) then only click event using “enter” hotkey should fire.

https://snippet.webix.com/acej4ti0

In your code, the onChange handler shows the buttons, so on the moment of hotkey handling, it is already visible and reacts on the same Enter key.

You can delay the moment of button showing

"onChange":function(newv,oldv){	
          if(newv=="One"){
           $$("txt").hide();
           $$("btn").hide();
          }
          else{
           webix.delay(function(){
             $$("txt").show();
             $$("btn").show();
           });
        }}

https://snippet.webix.com/zsbkoh7m

Thanks @maksim It works