Two Forms with Buttons and hotkey:"enter"

Hi Webix team, please look at the snippet there are two forms in a multiview with apply Buttons and hotkey:"enter". When I make some input in the Text field and klick the Enter key then the second Form appears and disappears. Do you have some advice for me. Many thanks in advance



  • edited April 2017

    hotkey catches the keypress globally (regardless of the actual focus), so pressing the Enter anywhere within the UI will trigger the button click (for both buttons, actually).
    However, please note that if the button is focused, Enter will cause the click even without thehotkey definition.

  • Hi guys, I have the same problem/question (see I understand from Listopad answer that the 'hotkey: enter' is not the good solution for our case, but how could we solve it ?

  • edited June 2018

    Hello @BBe78 ,

    You can try to use focus method

    Also, you can attach a handler to "enter" key pressing with the help of an addHotKey method of the UIManager module

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!