Shift instead of ctrl

This commit is contained in:
Ruben van de Ven 2019-02-02 18:20:55 +01:00
parent da6c13ef1f
commit 74730c1d25
1 changed files with 2 additions and 2 deletions

View File

@ -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' );
}