How to read any key pressed from keyboard?

Dec 31, 2014

Hi,

I got stuck in a quiz . In this quiz I need to accept any key from the keyboard, If user Press a correct key (eg: CTRL+L) it moves further, if wrong it should show an incorrect feedback. For this quiz, does it need any javascript? Please help. Thanks.

12 Replies
vimal singh

Thanks  a lot Ashley.  :) 

It's nice feature.

can I do it manually by programming method? Actually I am doing this step in a multiple step question and  I'm working on layers. So' it's a problem to use this feature here.... 

If there is another option to resolve it. I'd like to know...

@ Ashley , thanks again .. I'll use this feature by using the slides for each step....

Ashley Terwilliger-Pollard

Hi Vimal,

I'm not sure what you mean - but I suspect you means in terms of a trigger? There isn't a trigger option for pressing any other key - but maybe you could set it up to adjust the state of an offstage object when the user presses the correct key combination - and then use the states of that object to determine which layer to show? 

Ashley Terwilliger-Pollard

Hi Sayed,

We still don't have a trigger that allows for execution based on a user clicking any key. This feature hasn't bubbled up to the top of our roadmap, but we're still listening to the feedback!  Here's a bit more about how we work to prioritize feature requests.

In the meantime, I'm not sure if folks in the community created a Javascript solution, so hopefully, they'll pop in here to share! 

This discussion is closed. You can start a new discussion or contact Articulate Support.