Threaded View

  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    17
    Answers
    1
    Vote Rating
    0
    lanciendunet is on a distinguished road

      0  

    Default Answered: How to catch keypress enter ?

    Answered: How to catch keypress enter ?


    Hello,

    I'm a newbie on gxt3.

    I've a form with several field and i want that the "enter" submit my form ?
    How do I do that ?

    Thks

  2. I've resolved my problem with :
    Code:
    new KeyNav(myTextField) {
                @Override
                public void onEnter(NativeEvent evt) {
                    evt.stopPropagation();
                    evt.preventDefault();
                    myTextField.finishEditing();
                    //Do the action
                }
            };

Thread Participants: 2