prime.js
prime.js copied to clipboard
Support the Escape key for dismissing dialogs
I have a prototype that mostly works that uses the Overlay object to add dialogs to a stack and then just push and pop them off to manage the open dialog instead of doing a lot of work with zindex.
Then the Overlay can registerer a single key up handler on the body and watch for the ESCAPE key and pop the last dialog as it closes it.