From 1c66a8af288a987c72dec7d50bb4c4e768eb4b15 Mon Sep 17 00:00:00 2001 From: Sigbjorn Finne Date: Sun, 5 Dec 2010 16:50:00 +0800 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);