changed keyEvent from keyup to keydown

This commit is contained in:
Jono Brandel 2011-01-31 12:28:18 -08:00
parent 7048931536
commit 87f7f877c1

View File

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