Commits

Luke Plant  committed 4432913

Fixed for Firefox compat

  • Participants
  • Parent commits 78b8848

Comments (0)

Files changed (1)

     $('#id_prev').click(showPrevious);
     $('#id_next').click(showNext);
     $(document).bind('keypress', function(e) {
-        var n = e.keyCode - 48;
-        var k = String.fromCharCode(e.keyCode)
+        var n = e.charCode - 48;
+        var k = String.fromCharCode(e.charCode)
         if (n > 0 && n < 6) {
             showAnswer(n);
         }