diff options
author | 2009-07-18 12:53:26 -0400 | |
---|---|---|
committer | 2009-07-18 12:53:26 -0400 | |
commit | 016ab508175a1495e1e1e967467d481ac0258d5d (patch) | |
tree | 6b55accc9b388b5a6a51795811f7660a5ff5c682 /lib/js | |
parent | a38526edd81a66ad3f34cf65a66f4ba866dd1490 (diff) |
Key events get key code input
Diffstat (limited to 'lib/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 |