changed keyEvent from keyup to keydown

This commit is contained in:
Jono Brandel 2011-01-31 12:28:18 -08:00
parent 109474c99c
commit c3fd69b95a

View File

@ -64,7 +64,7 @@ var NumberController = function() {
}, false);
// Handle up arrow and down arrow
numberField.addEventListener('keyup', function(e) {
numberField.addEventListener('keydown', function(e) {
switch(e.keyCode) {
case 38: // up
var newVal = _this.getValue() + step;