title: Bootstrap model dialog closes on hitting the escape key
body: <p>I am using Bootstrap and Angular to build the model dialog box , I do not want to close the model when the esc key pressed. Right now my model is closing when the escape key is hit.</p>
  
  <pre><code> var modalInstance = $modal.open({
          backdrop: 'static',
          Keyboard: false,
          templateUrl: 'userprofile.html',
          controller: 'UserProfileController'
      });
  
  
   &lt;div class="container" style="overflow: auto;width:750px;height:500px"&gt;
                      &lt;div class="userProfile"&gt;
                          &lt;form name="userForm" ng-submit="submitForm(userForm.$valid)" novalidate&gt;
                              &lt;div class="row-flow"&gt;
                                  &lt;!-- First NAME --&gt;
                                  &lt;div class="form-group-profile col-sm-6 required"
                                       ng-class="{ 'has-error' : userForm.firstName.$invalid &amp;&amp; !userForm.firstName.$pristine }"&gt;
                                      &lt;label class="form-control-label"&gt;FIRST NAME&lt;/label&gt;
                                      &lt;input type="text" name="firstName" class="form-control" ng-model="firstName"
                                             required&gt;
  
                                      &lt;p ng-show="userForm.firstName.$invalid &amp;&amp; !userForm.firstName.$pristine"
                                         class="help-block"&gt;First name is required&lt;/p&gt;
                                  &lt;/div&gt;
  
                                  &lt;!-- Last NAME --&gt;
                                  &lt;div class="form-group-profile col-sm-6 required"
                                       ng-class="{ 'has-error' : userForm.lastName.$invalid &amp;&amp; !userForm.lastName.$pristine }"&gt;
                                      &lt;label class="form-control-label"&gt;LAST NAME&lt;/label&gt;
                                      &lt;input type="text" name="lastName" class="form-control" ng-model="lastName"
                                             required&gt;
  
                                      &lt;p ng-show="userForm.lastName.$invalid &amp;&amp; !userForm.lastName.$pristine"
                                         class="help-block"&gt;Last name is required&lt;/p&gt;
                                  &lt;/div&gt;
  &lt;/div&gt;
                          &lt;/form&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
  </code></pre>