Two Forms with Buttons and hotkey:"enter"

Hi Webix team, please look at the snippet http://webix.com/snippet/fe66fa20 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

Tagged:

Comments

  • 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 https://snippet.webix.com/1mo0wvl1). I understand from Listopad answer that the 'hotkey: enter' is not the good solution for our case, but how could we solve it ?
    Thks

  • edited June 2018

    Hello @BBe78 ,

    You can try to use focus method
    Example: https://snippet.webix.com/ygax2029

    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!