Fix keyboard navigation for Firefox.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 22 Apr 2018 18:34:02 +0000 (20:34 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 22 Apr 2018 18:34:02 +0000 (20:34 +0200)
files/pr0n-fullscreen.js

index 026c072..d66a5f1 100644 (file)
@@ -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(); };