Skip to content

Commit

Permalink
Merge pull request ccampbell#7 from satchamo/master
Browse files Browse the repository at this point in the history
Keypad numbers to regular numbers
  • Loading branch information
ccampbell committed Jul 6, 2012
2 parents ed6f4a7 + d7e18e1 commit c68b6fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mousetrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ window.Mousetrap = (function() {
return 91;
}

// map keypad numbers to top-of-keyboard numbers
if (e.keyCode >= 96 && e.keyCode <= 105){
return e.keyCode - 48;
}

return e.keyCode;
}

Expand Down

0 comments on commit c68b6fa

Please sign in to comment.