If you use the panel system ("UIPanelLayout-*" attributes on the frame), the game will do ESC for you automatically. Otherwise there's a special table you register with.
I'd recommend using the panel system, and trying to model your frame like the default UI panels as much as possible... it keeps things nice and consistent for the user, both in look and behavior.
Ah here it is... table.insert(UISpecialFrames, "yourframename") ... the frame must be reachable via getglobal, this code is *OLD* and cannot use direct frame references (anon frames).
Well I'm using the textures from the auction panel for now and just plan on changing them really slightly. Is there a good place to read about the panel system and that UISpecialFrames thing you mentioned?
I'd recommend using the panel system, and trying to model your frame like the default UI panels as much as possible... it keeps things nice and consistent for the user, both in look and behavior.
Ah here it is... table.insert(UISpecialFrames, "yourframename") ... the frame must be reachable via getglobal, this code is *OLD* and cannot use direct frame references (anon frames).
SpethialFrames: http://github.com/tekkub/wow-ui-source/blob/7e99b43fec17d0ae5e0e6344cbe6bc8231654e0c/FrameXML/UIParent.lua#L2033-2043
Are you drunk, Tekkub? If so, SHARE!!