comparison 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
comparison
equal deleted inserted replaced
894:a3f58978ff32 895:ae9e22822ec5
646 } 646 }
647 } 647 }
648 } 648 }
649 649
650 650
651 // Key events
652
653 function kc(e) {
654 return window.event ? e.keyCode : e.which;
655 }
656
657
651 // App-specific code 658 // App-specific code
652 659