I have a Bootply test setup here: http://bootply.com/67311

When I click the 'X' or the 'Close' button, it works as expected. However, I want it to close/dismiss when the user hits escape, or clicks outside the modal dialog.

How do I do this?

Edit
Report