mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
updated enter function
This commit is contained in:
parent
1acef3f40f
commit
75ffc69e2b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user