From c9b52294e176e6193017dbbcd0ed7490509885ea Mon Sep 17 00:00:00 2001 From: Jason Butz Date: Thu, 26 Jul 2012 11:02:46 -0500 Subject: [PATCH] Issue #3 - Adding event to .hide() call. --- bootstrap-lightbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap-lightbox.js b/bootstrap-lightbox.js index 02d6937..4730eca 100644 --- a/bootstrap-lightbox.js +++ b/bootstrap-lightbox.js @@ -230,7 +230,7 @@ $(window).load(function() var that = this if (this.isShown && this.options.keyboard) { $(document).on('keyup.dismiss.lightbox', function ( e ) { - e.which == 27 && that.hide() + e.which == 27 && that.hide(e) }) } else if (!this.isShown) { $(document).off('keyup.dismiss.lightbox')