From e2a371c2ca30d21795053333a8d539477abeee81 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 22 Apr 2018 20:34:02 +0200 Subject: [PATCH] Fix keyboard navigation for Firefox. --- files/pr0n-fullscreen.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/pr0n-fullscreen.js b/files/pr0n-fullscreen.js index 026c072..d66a5f1 100644 --- a/files/pr0n-fullscreen.js +++ b/files/pr0n-fullscreen.js @@ -488,8 +488,8 @@ window.onload = function() { var body = document.body; body.onresize = function() { relayout(); }; - body.onkeydown = function() { key_down(event.keyCode); }; - body.onkeyup = function() { key_up(event.keyCode); }; + body.onkeydown = function(evt) { key_down(evt.keyCode); }; + body.onkeyup = function(evt) { key_up(evt.keyCode); }; body.onhashchange = function() { check_for_hash_change(); }; body.onclick = function() { check_for_hash_change(); }; -- 2.39.5