title: ng-keypress="return press($event,'text')" return not working
body: <p>I am not able to return value in ng-keypress event. Idea is to prevent few characters being pressed. I Know I can do the same without returning true/false by event.preventdefault(). </p>
  
  <p>ng-keypress="return press($event,'text')" not working</p>
  
  <pre><code>scope.press = function(event)
  {
    event = (event) ? event : window.event;
      var charCode = (event.which) ? event.which : event.keyCode;
    if ((charCode &gt; 31 &amp;&amp; (charCode &lt; 48 || charCode &gt; 57)) || charCode==8 ) 
     {
          return;
     }
     else 
    { 
      return false;
    }
   }
  </code></pre>