Skip to main content
Alex White
Legend
Nov 12, 2017 12:44 PM UTC
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
Nov 12, 2017 12:51 PM UTC

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
Nov 12, 2017 12:51 PM UTC

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
Nov 13, 2017 5:36 PM UTC

Thanks! But how about doing that without jQuery?

Translate
Trevor:
Legend
Nov 13, 2017 9:14 PM UTC