HubSpot/vex — pull request #9 by gregsabo (2013-09-20 19:44:40+00:00)
Title: Escape key handling

Pressing ESC will close the topmost vex modal, if that modal has the option `escapeButtonCloses` set to `true`. Should correctly handle when modals are closed programmatically, as well.

One thing I'm unsure of is event propagation. Should I preventDefault if the keypress is being used to close a modal?