15 Dec 2006 6:42 AM #1
BasicDialog | addKeyListener problem
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 : http://www.yui-ext.com/forum/viewtopic.php?t=583. So I downloaded 14. Dec version of yui-ext and it works just great now, but.. Now
dialog.addKeyListener(27, dialog.hide, dialog);
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.
15 Dec 2006 8:32 AM #2
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.
15 Dec 2006 9:09 AM #3
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.
By alanwilliamson in forum Ext 1.x: Help & DiscussionReplies: 5Last Post: 21 Dec 2006, 4:28 AM
By corey.gilmore in forum Ext 1.x: Help & DiscussionReplies: 6Last Post: 14 Dec 2006, 4:26 PM
By lilolilo in forum Ext 1.x: Help & DiscussionReplies: 3Last Post: 2 Dec 2006, 4:54 AM
By chris in forum Ext 1.x: BugsReplies: 4Last Post: 18 Nov 2006, 12:21 PM
By vtswingkid in forum Ext 1.x: Help & DiscussionReplies: 4Last Post: 17 Nov 2006, 8:27 PM