mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
changed keyEvent from keyup to keydown
This commit is contained in:
parent
7048931536
commit
87f7f877c1
@ -64,7 +64,7 @@ var NumberController = function() {
|
|||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
// Handle up arrow and down arrow
|
// Handle up arrow and down arrow
|
||||||
numberField.addEventListener('keyup', function(e) {
|
numberField.addEventListener('keydown', function(e) {
|
||||||
switch(e.keyCode) {
|
switch(e.keyCode) {
|
||||||
case 38: // up
|
case 38: // up
|
||||||
var newVal = _this.getValue() + step;
|
var newVal = _this.getValue() + step;
|
||||||
|
Loading…
Reference in New Issue
Block a user