title: Javascript validation for ñÑ characters works on chrome but not on firefox
body: <p>I'm working on ASP.Net, i have a WebForm with a link to a javascript file which contains the following function:</p>
  
  <pre><code>    $(".string").keydown(function (e) {
      var x = (e.charCode) ? e.charCode : ((e.which) ? e.which : e.keyCode);
      if ($.inArray(e.keyCode, [46, 8, 27, 16, 13, 32, 192, 9, 209, 241]) !== -1 ||
          (e.keyCode == 65 &amp;&amp; (e.ctrlKey === true || e.metaKey === true)) ||
          (e.keyCode == 67 &amp;&amp; (e.ctrlKey === true || e.metaKey === true)) ||
          (e.keyCode == 88 &amp;&amp; (e.ctrlKey === true || e.metaKey === true)) ||
          (e.keyCode &gt;= 35 &amp;&amp; e.keyCode &lt;= 39)) {
          return;
      }
      if (e.keyCode &lt; 65 || e.keyCode &gt; 90) {
          e.preventDefault();
      }
  });
  </code></pre>
  
  <p>This successfully allows me to type the ñÑ (209, 241) characters on Chrome but fails to do so on Firefox, i saw that you should use <code>e.which</code> when dealing with Firefox but it doesn't work. I'm not too good with javascript so, what am i not understanding here?</p>