title: Firefox - allow Select All in text field while allowing only numbers and period
body: <p>I've come up with the following code to restrict a currency input. A user can use home, end and arrow keys, but ctrl + a is blocked because FireFox isn't recognizing the key combination. This works correctly in Chrome and IE.</p>
  
  <p>Is there a way to allow select all in a field in FireFox or is this a bug in FireFox? (or perhaps a bug in other browsers that I'm 'exploiting'?)</p>
  
  <pre><code>function autoFormatNumeric(field, e) {
    var charCode = e.which ? e.which : field.keyCode;
    if ((charCode != 46 &amp;&amp; charCode &gt; 31 &amp;&amp; (charCode &lt; 48 || charCode &gt; 57)) ) {
      e.preventDefault();
    }
  }
  </code></pre>