Results 1 to 3 of 3

Thread: BasicDialog | addKeyListener problem

  1. #1
    Ext User
    Join Date
    Mar 2007
    Vote Rating

    Default BasicDialog | addKeyListener problem

    Hi Jack,

    first of all thank you very much for your great work ! It's just amazing what you have put together here.

    I had some problems with fixedCenter in BasicDialog, similar to what is described here : So I downloaded 14. Dec version of yui-ext and it works just great now, but.. Now

    dialog.addKeyListener(27, dialog.hide, dialog);
    somehow doesn't work anymore ... escape key is not responding and it WAS working before. I don't have too much time to get down the code to check it cause this functionality is not crucial for me but I just wanted to let you know.

    Andrzej Rumpfelt

    p.s. there seems to be a problem with "Build Your Own" tool.. after hitting "Build" you get some bad php errors for file_get_contents .. looks like it can't find the files it needs.

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Vote Rating


    You need to do setDefaultButton() on one of the dialog's buttons - there have been several threads/examples of this the last couple of days.

  3. #3
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    New York, NY
    Vote Rating


    The dialog's key listeners were moved from the document to the dialog element in the latest release. This means something in the dialog has to have the focus in order to receive keys. The reason for the change was to allow multiple dialogs to coexist.

    "Build your own" is fixed. Sorry about that.
    Jack Slocum
    Sencha Co-Founder, Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum

Similar Threads

  1. BasicDialog and IE .. greyed out problem
    By alanwilliamson in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 21 Dec 2006, 4:28 AM
  2. addKeyListener doesn't work for BasicDialog?
    By corey.gilmore in forum Ext 1.x: Help & Discussion
    Replies: 6
    Last Post: 14 Dec 2006, 4:26 PM
  3. How to use addKeyListener?
    By lilolilo in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 2 Dec 2006, 4:54 AM
  4. BasicDialog problem with Firefox
    By chris in forum Ext 1.x: Bugs
    Replies: 4
    Last Post: 18 Nov 2006, 12:21 PM
  5. addKeyListener Opera form return key problem
    By vtswingkid in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 17 Nov 2006, 8:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts