Permalink
Browse files

added few more tests

  • Loading branch information...
1 parent c659721 commit f9f7534a7db4e56a8dca1f78372cc8ac760223a6 tzury bar yochay committed May 3, 2009
Showing with 410 additions and 0 deletions.
  1. +19 −0 jquery-1.3.2.min.js
  2. +350 −0 test-static-05.html
  3. +41 −0 test-static-06.html
View
Oops, something went wrong.
View
Oops, something went wrong.
View
@@ -0,0 +1,41 @@
+<html>
+ <head>
+ <script src="jquery-1.3.2.min.js"></script>
+ </head>
+
+ <body>
+ <h1>KeyDown.</h1>
+ currentTarget: <input id="kd_currentTarget"><br/>
+ which: <input id="kd_which"></br>
+ shiftKey: <input id="kd_shiftKey"><br/>
+ ctrlKey: <input id="kd_ctrlKey"><br/>
+ altKey: <input id="kd_altKey"><br/>
+ <h1>KeyPress.</h1>
+ currentTarget: <input id="kp_currentTarget"><br/>
+ which: <input id="kp_which"></br>
+ shiftKey: <input id="kp_shiftKey"><br/>
+ ctrlKey: <input id="kp_ctrlKey"><br/>
+ altKey: <input id="kp_altKey"><br/>
+ <script>
+
+ $(document).bind('keydown', KdDescribeEvent);
+ $(document).bind('keypress', KpDescribeEvent);
+
+ function KdDescribeEvent(event){
+ $('#kd_currentTarget').val(event.currentTarget);
+ $('#kd_which').val(event.which);
+ $('#kd_shiftKey').val(event.shiftKey);
+ $('#kd_ctrlKey').val(event.ctrlKey);
+ $('#kd_altKey').val(event.altKey);
+ }
+ function KpDescribeEvent(event){
+ $('#kp_currentTarget').val(event.currentTarget);
+ $('#kp_which').val(event.which);
+ $('#kp_shiftKey').val(event.shiftKey);
+ $('#kp_ctrlKey').val(event.ctrlKey);
+ $('#kp_altKey').val(event.altKey);
+ }
+
+ </script>
+ </body>
+</html>

0 comments on commit f9f7534

Please sign in to comment.