From 47f54170bb8e8dee2a1170055ef2fa06e93e6a4f Mon Sep 17 00:00:00 2001 From: Bala Clark Date: Sat, 3 Sep 2011 22:27:43 +0200 Subject: [PATCH] disable keyboard shortcuts when the overlay is up --- lib/ComicBook.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ComicBook.js b/lib/ComicBook.js index 7e65398..fb1694d 100755 --- a/lib/ComicBook.js +++ b/lib/ComicBook.js @@ -751,6 +751,9 @@ function ComicBook(id, srcs, opts) { ComicBook.prototype.navigation = function (e) { + // disable navigation when the overlay is showing + if ($("#cb-loading-overlay").is(":visible")) { return false; } + var side = false; switch (e.type) {