Ahem, now the enter or return keyCode triggers value updates on NumberController

This commit is contained in:
Jono Brandel 2011-02-17 15:17:24 -08:00
parent aab996398e
commit 1acef3f40f

View File

@ -67,7 +67,7 @@ GUI.NumberController = function() {
var newVal;
switch(e.keyCode) {
case 13:
newVal = this.getValue();
newVal = parseFloat(this.value);
_this.setValue(newVal);
break;
case 38: // up