Skip to content
Browse files

added more tests

  • Loading branch information...
1 parent f9f7534 commit 837ccdef04b88a5c743698e7b7ce5eaa40b0c2ba tzury bar yochay committed May 3, 2009
Showing with 29 additions and 0 deletions.
  1. +29 −0 test-static-07.html
View
29 test-static-07.html
@@ -0,0 +1,29 @@
+<html>
+ <head>
+ <script src="jquery-1.2.6.js"></script>
+ <script src="jquery.hotkeys.js"></script>
+ </head>
+
+ <body>
+ <input type="button" id="bindCtrlS" value="bind ctrl+s" />
+ <input type="button" id="unBindCtrlS" value="unbind ctrl+s" />
+ <script>
+ function bindCtrlS(){
+ jQuery(document).bind('keydown', 'ctrl+s',function (evt){
+ alert("Ctrl+S");
+ return false;
+ });
+ }
+
+ function unBindCtrlS(){
+ jQuery(document).unbind('keydown', 'ctrl+s');
+ }
+
+ $(document).ready(function(){
+ $('#bindCtrlS').bind('click', bindCtrlS);
+ $('#unBindCtrlS').bind('click', unBindCtrlS);
+ }
+ );
+
+ </script>
+ </body></html>

0 comments on commit 837ccde

Please sign in to comment.
Something went wrong with that request. Please try again.