PDA

View Full Version : BasicDialog | addKeyListener problem



andrzejR
15 Dec 2006, 6:42 AM
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 : 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);

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.

Greetings,
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.

tryanDLS
15 Dec 2006, 8:32 AM
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.

jack.slocum
15 Dec 2006, 9:09 AM
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.