diff lib/js/urweb.js @ 895:ae9e22822ec5

Key events get key code input
author Adam Chlipala <adamc@hcoop.net>
date Sat, 18 Jul 2009 12:53:26 -0400
parents bcad392e288e
children d1d0b18afd3d
line wrap: on
line diff
--- a/lib/js/urweb.js	Sat Jul 18 12:37:19 2009 -0400
+++ b/lib/js/urweb.js	Sat Jul 18 12:53:26 2009 -0400
@@ -648,5 +648,12 @@
 }
 
 
+// Key events
+
+function kc(e) {
+  return window.event ? e.keyCode : e.which;
+}
+
+
 // App-specific code