mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Ahem, now the enter or return keyCode triggers value updates on NumberController
This commit is contained in:
parent
aab996398e
commit
1acef3f40f
@ -67,7 +67,7 @@ GUI.NumberController = function() {
|
|||||||
var newVal;
|
var newVal;
|
||||||
switch(e.keyCode) {
|
switch(e.keyCode) {
|
||||||
case 13:
|
case 13:
|
||||||
newVal = this.getValue();
|
newVal = parseFloat(this.value);
|
||||||
_this.setValue(newVal);
|
_this.setValue(newVal);
|
||||||
break;
|
break;
|
||||||
case 38: // up
|
case 38: // up
|
||||||
|
Loading…
Reference in New Issue
Block a user