1. #1
    Ext GWT Premium Member
    Join Date
    Apr 2010
    Posts
    43
    Vote Rating
    0
    hraing is on a distinguished road

      0  

    Default Answered: Window Key Listener

    Answered: Window Key Listener


    So, what I need to do is to close the window and go to a specific page.

    I´ve disabled the ESC funtion wich only cloes the window

    window.setOnEsc(false); so the window doesn´t do anyting now.

    now I want to add an handler which works for the window and all its children that caches the ESC on keypress becuase I want to direct the user to a specific page..

    Any Ideas??


    regards
    Hrafn

  2. Try doing the exact same way that the onEsc configuration is doing.

    Override the onKeyPress on your Window... and then, if esc was pressed, do something else other then calling hide(), which is the default.

    Hope this helps you.

    Regards,
    Michel.

  3. #2
    Sencha User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    870
    Vote Rating
    1
    Answers
    9
    micgala is on a distinguished road

      0  

    Default


    Try doing the exact same way that the onEsc configuration is doing.

    Override the onKeyPress on your Window... and then, if esc was pressed, do something else other then calling hide(), which is the default.

    Hope this helps you.

    Regards,
    Michel.

Thread Participants: 1