Skip to content

Commit

Permalink
Merge pull request #94 from abiezerm/master
Browse files Browse the repository at this point in the history
Dont allow keys using shift (#, $, %)
  • Loading branch information
SamWM committed Jun 10, 2015
2 parents 7e93c29 + 9450deb commit ca59060
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions numeric/jquery.numeric.js
Expand Up @@ -70,6 +70,10 @@ $.fn.numeric.keypress = function(e)
{
return false;
}
//dont allow #, $, %
else if(key == 35 || key == 36 || key == 37){
return false;
}
var allow = false;
// allow Ctrl+A
if((e.ctrlKey && key == 97 /* firefox */) || (e.ctrlKey && key == 65) /* opera */) { return true; }
Expand Down

0 comments on commit ca59060

Please sign in to comment.