1 Reply Latest reply on Feb 9, 2015 1:14 AM by 0dayproxy

    How to create a keypress event for ANY key on the keyboard that is pressed ? (not a specific key.)

    0dayproxy

      I realise that if I use:

      if (e.which == 81) {

      do whatever

      }

      I can activate an action based on key 81 being pressed.


      But how would I do the same, regardless of what key is pressed?