From 6cdbfc0c15da6e3377f0a9efc81a97b3d907ec9c Mon Sep 17 00:00:00 2001 From: Sigbjorn Finne Date: Sun, 5 Dec 2010 09:50:00 +0100 Subject: [PATCH] handleKey(): if .charCode is undefined, use .keyCode (Opera compatible.) --- kioskWires.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kioskWires.js b/kioskWires.js index b9c2ff7..0828079 100644 --- a/kioskWires.js +++ b/kioskWires.js @@ -102,7 +102,7 @@ function setup_part3(){ ///////////////////////// function handleKey(e){ - var c = e.charCode; + var c = e.charCode || e.keyCode; c = String.fromCharCode(c); if('zx<>?np'.indexOf(c)==-1) return; if((c=='x' || c=='<') && zoom>1) setZoom(zoom/1.2);