From f4ce1f5b0268084f7d1ca091081a5cd60a0c537b Mon Sep 17 00:00:00 2001 From: Adrian Iain Lam Date: Fri, 15 May 2015 12:22:08 -0700 Subject: [PATCH] --- xkcd_keyboard_nav.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xkcd_keyboard_nav.user.js b/xkcd_keyboard_nav.user.js index 732d54e..4610ec9 100644 --- a/xkcd_keyboard_nav.user.js +++ b/xkcd_keyboard_nav.user.js @@ -27,7 +27,7 @@ // @name xkcd keyboard nav // @namespace https://github.com/adrianiainlam // @description Navigate xkcd with your keyboard -// @version 1.0.1 +// @version 1.0.2 // @downloadURL https://gist.github.com/adrianiainlam/542dd0794a874ca31321/raw/xkcd_keyboard_nav.user.js // @updateURL https://gist.github.com/adrianiainlam/542dd0794a874ca31321/raw/xkcd_keyboard_nav.user.js // @include /^https?://xkcd\.com(/[0-9]+)?/?$/ @@ -49,7 +49,7 @@ function showTitleText() { } document.body.addEventListener("keypress", function(e) { - if (event.defaultPrevented) { + if (e.defaultPrevented) { return; // Should do nothing if the key event was already consumed. } var navList = document.getElementsByClassName("comicNav")[0].children; -- 2.7.4