Shift instead of ctrl
This commit is contained in:
parent
da6c13ef1f
commit
74730c1d25
1 changed files with 2 additions and 2 deletions
|
@ -203,14 +203,14 @@ class Graph {
|
|||
this.controlDown = false;
|
||||
document.addEventListener( 'keydown', function( e ) {
|
||||
console.log( e );
|
||||
if ( e.which == "17" ) {
|
||||
if ( e.which == "16" ) { // shift
|
||||
graph.controlDown = true;
|
||||
document.body.classList.add( 'controlDown' );
|
||||
}
|
||||
} );
|
||||
document.addEventListener( 'keyup', function( e ) {
|
||||
console.log( e );
|
||||
if ( e.which == "17" ) {
|
||||
if ( e.which == "16" ) { // shift
|
||||
graph.controlDown = false;
|
||||
document.body.classList.remove( 'controlDown' );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue