Update of /cvsroot/dynapi/dynapi/examples
In directory usw-pr-cvs1:/tmp/cvs-serv4553

Modified Files:
        dynapi.event.keyevents.html 
Log Message:
Alerting the key instead of the keycode seems more interesting

Index: dynapi.event.keyevents.html
===================================================================
RCS file: /cvsroot/dynapi/dynapi/examples/dynapi.event.keyevents.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** dynapi.event.keyevents.html 2001/03/25 06:04:16     1.1
--- dynapi.event.keyevents.html 2001/04/13 20:53:10     1.2
***************
*** 23,27 ****
                myListener.onkeyup=function(e) {
                        if (e.charKey=='s') alert('You\'ve found the secret key')
!                       if ((e.charKey>='a')&&(e.charKey<='z')) alert('You pressed the 
key with keycode '+e.which+'.')
                }
                myListener.onkeydown=function(e) {
--- 23,27 ----
                myListener.onkeyup=function(e) {
                        if (e.charKey=='s') alert('You\'ve found the secret key')
!                       if ((e.charKey>='a')&&(e.charKey<='z')) alert('You pressed the 
key  \''+e.charKey+'\'.')
                }
                myListener.onkeydown=function(e) {


_______________________________________________
Dynapi-CVS mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-cvs

Reply via email to