title: JQuery- hotkeys and windows prompt issue
body: <p>By referring to this <a href="http://jshotkeys.googlepages.com/test-static-01.html" rel="nofollow noreferrer">link</a>
  I try to implement this powerful tool and facing some issue.</p>
  <p>Every time when I click <code>Ctrl S</code>, it will popup a window prompt asking me whether I want to save my testing.html.</p>
  <p>I want to ignore windows prompt.</p>
  <p>What I want is simple:</p>
  <ol>
  <li><p>when people click save button/ use shortcut key <code>ctrl s</code> from keyboard</p>
  </li>
  <li><p>script need to do a <code>Create()</code> checking</p>
  </li>
  <li><p>if true then continue to submit form, if false, then stop alert <code>Please enter question</code>, focus back to <code>txtQuestion</code>, and don't do any further action.</p>
  </li>
  </ol>
  <p>Below is the full source code for reference:
  enter</p>
  <pre><code>   &lt;html&gt;
     &lt;head&gt;
         &lt;style&gt;
             * {font-family: Helvetica, Verdana, Arial; font-size:0.95em}
             .eventNotifier{width: 100px; float: left; color:navy; 
                   border: dotted 1px navy; padding: 4px; background-color:white; 
                   margin:3px}
             .dirty{border: solid 1px #0ca2ff; color:white; 
                    background-color:#0ca2ff}
         &lt;/style&gt;
     
         &lt;script src=&quot;jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt;
         &lt;script src=&quot;jquery.hotkeys-0.7.9.min.js&quot;&gt;&lt;/script&gt;
         &lt;script type=&quot;text/javascript&quot;&gt;
             $(document).ready(function() {
  
  //weird- I found the alert Ctrl+S to appear twice.. ???
  $(window).keypress(function(event) {
   if ((event.which == 115 &amp;&amp; event.ctrlKey)){
       alert(&quot;Ctrl+S pressed&quot;);
       event.preventDefault();
   }
  });
  
                 jQuery(document).bind('keydown', 'Ctrl+s',
                        function(evt){ Create(); return false; });
                 //jQuery(document).bind('keydown', 'Ctrl+s',
                       //function (evt){jQuery('#_Ctrl_s'); return false; });
             });
         
             function Create()
             {
                 var f = document.frm
         
                 if (f.txtQuestion.value.length == 0)
                 {
                     alert('Please enter Question.')
                     f.txtQuestion.focus()
                     return false
                 }
                 f.submit()
             }
     
         &lt;/script&gt;
     &lt;/head&gt;
     &lt;body&gt; 
         &lt;form name=&quot;frm&quot; method=post action=&quot;&quot; &gt;
           &lt;div id=&quot;_Ctrl_s&quot; class=&quot;eventNotifier&quot;&gt;Ctrl+s&lt;/div&gt;
           &lt;input type=text name=&quot;txtQuestion&quot; maxlength=&quot;255&quot; 
                     class=&quot;field400&quot; value=&quot;&quot;&gt;
           &lt;input type=button value=&quot;Save&quot; name=&quot;BtnSave&quot; onclick=&quot;Create()&quot; 
                     class=text100&gt;
         &lt;/form&gt;
     &lt;/body&gt;
     &lt;/html&gt;
  </code></pre>
  <p>code here</p>