updated enter function

This commit is contained in:
Jono Brandel 2011-03-03 10:45:01 -08:00
parent 1acef3f40f
commit 75ffc69e2b

View File

@ -66,7 +66,7 @@ GUI.NumberController = function() {
numberField.addEventListener('keydown', function(e) { numberField.addEventListener('keydown', function(e) {
var newVal; var newVal;
switch(e.keyCode) { switch(e.keyCode) {
case 13: case 13: // enter
newVal = parseFloat(this.value); newVal = parseFloat(this.value);
_this.setValue(newVal); _this.setValue(newVal);
break; break;