The dialog itself binds keydown event to itself for closing the dialog
on ESC; in addition, the dialog overlay binds a keydown event to
document, without filtering to close only the active dialog.
There doesn't seem be a trivial way to detect multiple modal dialogs.
Maybe the right approach here is to prevent multiple modal dialogs in
the first place. If we allow two, we allow an unlimited amount, sure
to be causing performance issues, as each creates its own overlay.
What do you think?
Jörn
I *really* don't see the big issue here. The implementation to reuse an active overlay is
trivial, and we should do it if we can't finish a seperate overlay plugin for 1.8.