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

Hot keys inside the panel

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 is closed to new replies. Start a new post to keep the conversation going.
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

3 replies

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

Translate
Alex White
Legend
November 13, 2017

Thanks! But how about doing that without jQuery?

Translate
Trevor:
Legend
November 13, 2017