diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-07-18 12:53:26 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-07-18 12:53:26 -0400 |
commit | a0f04bf3a961a1da0283397f1f69c3c9bf6c1404 (patch) | |
tree | 6b55accc9b388b5a6a51795811f7660a5ff5c682 /lib/js/urweb.js | |
parent | d220a54cca60319831bd618f6cd70245014397cb (diff) |
Key events get key code input
Diffstat (limited to 'lib/js/urweb.js')
-rw-r--r-- | lib/js/urweb.js | 7 |
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 |