Bootstrap, from Twitter, is currently the most popular front-end framework. Bootstrap is based on HTML, CSS, JAVASCRIPT, it is simple and flexible, making Web development faster. However, in the use of the process, we will still encounter a variety of small problems, today we are talking about the use of personal experience in a small bug repair.
Bootstrap provides us with a lot of handy page controls, and modal is one of them. Many people have encountered an ESC key press failure to close when using modal, even if the explicit incoming keyboard option does not take effect.
$ (' #editFormItemModal '). Modal ({show:true, keyboard:true});
This issue is in the version after 2.1, to solve this problem is also very simple, modal the div add a TabIndex property can:
<div class= "Fade Modal" tabindex= "-1" >
The problem is simple, the repair is also very simple, I hope to be able to help.