]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Tweak Esc key comment in modal.js
authorChris Rebert <github@chrisrebert.com>
Tue, 31 May 2016 09:19:56 +0000 (02:19 -0700)
committerChris Rebert <github@chrisrebert.com>
Tue, 31 May 2016 09:19:56 +0000 (02:19 -0700)
[skip sauce]
[skip validator]

js/src/modal.js

index 2f26bc0d92445049654fb5252b5f6a1439d2e2cd..bf0a7608fb22fca5ada2d38d5fdc3389beea7f08 100644 (file)
@@ -25,7 +25,7 @@ const Modal = (($) => {
   const JQUERY_NO_CONFLICT           = $.fn[NAME]
   const TRANSITION_DURATION          = 300
   const BACKDROP_TRANSITION_DURATION = 150
-  const ESCAPE_KEYCODE               = 27 // Escape (Esc) key
+  const ESCAPE_KEYCODE               = 27 // KeyboardEvent.which value for Escape (Esc) key
 
   const Default = {
     backdrop : true,