0
Community Beginner
,
/t5/animate-discussions/using-keystroke-event-listeners-in-actions/td-p/11606936
Nov 18, 2020
Nov 18, 2020
Copy link to clipboard
Copied
Hi, I'm using Animate 2020 and don't see any documentation on using keystroke event listeners within actions to accept user input at runtime, can anyone help?
For example, I would like the user to be able to jump forward in the timeline to specific labeled frames by pressing the right arrow.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer
Community Expert
,
Nov 18, 2020
Nov 18, 2020
document.onkeydown = f.bind(this);
function f(e){
console.log(e.key);
}
Community Expert
,
/t5/animate-discussions/using-keystroke-event-listeners-in-actions/m-p/11607519#M337666
Nov 18, 2020
Nov 18, 2020
Copy link to clipboard
Copied
document.onkeydown = f.bind(this);
function f(e){
console.log(e.key);
}
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
jeffc96039282
AUTHOR
Community Beginner
,
/t5/animate-discussions/using-keystroke-event-listeners-in-actions/m-p/11641440#M338135
Dec 01, 2020
Dec 01, 2020
Copy link to clipboard
Copied
Perfect, thanks
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/animate-discussions/using-keystroke-event-listeners-in-actions/m-p/11641469#M338137
Dec 01, 2020
Dec 01, 2020
Copy link to clipboard
Copied
you're welcome.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

