Skip to main content
Alex White
Legend
November 12, 2017
Answered

Hot keys inside the panel

  • November 12, 2017
  • 1 reply
  • 928 views

Hi everyone.

Is there any working method that allows adding addEventListener to keys combinations (aka capture keystrokes)?

I've tried a few inside the After Effects and it seems like it works inside some of the versions.

This topic has been closed for replies.
Correct answer Trevor:

Using jQuery

$('#yourID').keypress(function(key) {

        // do something with your key

});

See https://api.jquery.com/keypress/

You can also do it without jquery I'm just lazy so I use jquery

1 reply

Trevor:
Trevor:Correct answer
Legend
November 12, 2017

Using jQuery

$('#yourID').keypress(function(key) {

        // do something with your key

});

See https://api.jquery.com/keypress/

You can also do it without jquery I'm just lazy so I use jquery

Alex White
Legend
November 13, 2017

Thanks! But how about doing that without jQuery?

Trevor:
Legend
November 13, 2017