From 1acef3f40fd4638ce14a92f627474fc4a355ca69 Mon Sep 17 00:00:00 2001 From: Jono Brandel Date: Thu, 17 Feb 2011 15:17:24 -0800 Subject: [PATCH] Ahem, now the enter or return keyCode triggers value updates on NumberController --- controllers/controller.number.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/controller.number.js b/controllers/controller.number.js index ab20ef5..36b72ce 100644 --- a/controllers/controller.number.js +++ b/controllers/controller.number.js @@ -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