Use event.keyCode instead of key.which; works with IE.
authorSteinar H. Gunderson <sesse@debian.org>
Tue, 1 Aug 2006 11:43:19 +0000 (13:43 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Tue, 1 Aug 2006 11:43:19 +0000 (13:43 +0200)
templates/default/fullscreen-footer

index 12d6c18f5a65c4ae1b6bc035277d631536465685..bd569d8d6201f28a3c379d5834065a47f1193e2e 100644 (file)
@@ -10,7 +10,7 @@ var global_select = %SEL%;
     </script>
     <script type="text/JavaScript" src="/pr0n-fullscreen.js"></script>
   </head>
-  <body onresize="relayout();" onload="init_ajax(); relayout();" onkeydown="key_down(event.which);" onkeyup="key_up(event.which);">
+  <body onresize="relayout();" onload="init_ajax(); relayout();" onkeydown="key_down(event.keyCode);" onkeyup="key_up(event.keyCode);">
     <div>
       <div class="container" id="main"><div id="iehack"></div></div>
       <img id="previous" src="/previous.png" alt="&lt;-" onmousedown="if (can_go_previous()) set_opacity('previous', 1.0)" onmouseup="if (can_go_previous()) { set_opacity('previous', 0.7); go_previous(); }" onmouseout="if (can_go_previous()) { set_opacity('previous', 0.7); }" />