View Full Version : What closes your addin window on the Escape key?
vincent
06-25-2005, 04:36 AM
I'd like to close my addin window when the Escape key is pressed. I tried adding a <OnEscapePressed>, but it never fires. What determines if the Escape key will close a window?
Flisher
06-25-2005, 10:23 AM
the parrent of the addons mainframe i think.
vincent
06-25-2005, 10:29 AM
OK, so what do I need to do so that the parent (UIParent), will close the window on an Escape? I've looked at quite a few other scripts and haven't found anything that works for me...
It puzzles me that with no obvious difference, one window gets closed, but another doesn't!
vincent
06-25-2005, 11:15 AM
I think I've finally tracked it down. Its handled by CloseWindows() and the frame hes to be registered in UIPanelWindows[];
Flisher
06-25-2005, 12:10 PM
Ah, yup, my addons use that :)
vBulletin® v3.8.0 Beta 1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.