removed arrow key navigation code, custom navigation keys should be passed in the options object

This commit is contained in:
Bala Clark 2013-03-19 00:07:58 +01:00
parent 9a65d2c4aa
commit 8d9970d0b1

View file

@ -321,19 +321,7 @@ function ComicBook(id, srcs, opts) {
.attr("id", "cb-loading-overlay")
.addClass("cb-control")
};
/*Using left arrow key*/
$(document).keydown(function(e) {
if (e.keyCode == 37) {
ComicBook.prototype.drawPrevPage();
}
});
/*Using right arrow key*/
$(document).keydown(function(e) {
if (e.keyCode == 39) {
ComicBook.prototype.drawNextPage();
}
});
ComicBook.prototype.renderControls = function() {
$(canvas)