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

View file

@ -203,14 +203,14 @@ class Graph {
this.controlDown = false; this.controlDown = false;
document.addEventListener( 'keydown', function( e ) { document.addEventListener( 'keydown', function( e ) {
console.log( e ); console.log( e );
if ( e.which == "17" ) { if ( e.which == "16" ) { // shift
graph.controlDown = true; graph.controlDown = true;
document.body.classList.add( 'controlDown' ); document.body.classList.add( 'controlDown' );
} }
} ); } );
document.addEventListener( 'keyup', function( e ) { document.addEventListener( 'keyup', function( e ) {
console.log( e ); console.log( e );
if ( e.which == "17" ) { if ( e.which == "16" ) { // shift
graph.controlDown = false; graph.controlDown = false;
document.body.classList.remove( 'controlDown' ); document.body.classList.remove( 'controlDown' );
} }