0
For example :
  myFunction(event) {
    if(event is "Ctrl+mouse left" ) {
      console.log('it works');
    }
  }

only want to know how I can track this event in javascript

jit
  • 35
  • 1
  • 1
  • 6
  • Do you have any code to show? Anything you tried but does not work? Then please provide a JsFiddle. This platform is not intended to be a platform where other users code for you. – Mario Murrent Feb 21 '18 at 14:16

1 Answers1

0

You need the combination of this two events:

   event.ctrlKey 

is=true if the CTRL key is pressed

   event.button  

is=0 if the left mouse button is clicked

J_P
  • 761
  • 8
  • 17