title: Replacing comma with dot Char
body: <p>I have made a calculation app in AppJs. </p>
  
  <p>Basicly it is a bunch of: </p>
  
  <pre><code> &lt;input type=number&gt; 
  </code></pre>
  
  <p>fields. </p>
  
  <p>To make it more user friendly i thought i should replace All commas with dots, so that javascript can use the actual values to calculate. </p>
  
  <p>I've tried doing this with this following pice of code: </p>
  
  <pre><code>$("input[type=number]").keyup(function(e){
          var key = e.which ? e.which : event.keyCode;
          if(key == 110 || key == 188){
            e.preventDefault();
            var value = $(this).val();         
            $(this).val(value.replace(",","."));
          }   
  });
  </code></pre>
  
  <p>In explorer 9, this works as expected: <a href="http://jsfiddle.net/vz66zheq/1/" rel="nofollow">see fiddle</a></p>
  
  <p>But since App.js uses chromium i guess this is a something thats happens in chromium. How can I work around this?</p>
  
  <p>This is what happens in my app: 
  When you enter a number containing a comma char. The comma char is moved to the right and when the input box loses focus, the comma is removed (Probably since the comma char isn't allowed in type=number)</p>