summaryrefslogtreecommitdiff
path: root/lib/js
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-07-18 12:53:26 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-07-18 12:53:26 -0400
commita0f04bf3a961a1da0283397f1f69c3c9bf6c1404 (patch)
tree6b55accc9b388b5a6a51795811f7660a5ff5c682 /lib/js
parentd220a54cca60319831bd618f6cd70245014397cb (diff)
Key events get key code input
Diffstat (limited to 'lib/js')
-rw-r--r--lib/js/urweb.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js
index 29728a7a..3d4dbea2 100644
--- a/lib/js/urweb.js
+++ b/lib/js/urweb.js
@@ -648,5 +648,12 @@ function rv(chn, parse, k) {
}
+// Key events
+
+function kc(e) {
+ return window.event ? e.keyCode : e.which;
+}
+
+
// App-specific code