User presses function key
Dec 02, 2012
I am building a simulation in Storyline that requires the learner to use the F1, F3 and F4 keys during interactions. Currently, these function keys trigger default actions as per browsers and storyline, such as when pressing F1, a browser window opens to the storyline publishing/preview webpage.
Is it possible to use function keys as part of triggers? Is so, what do I need to do to disable the default actions?
8 Replies
Hello Cheryl,
Since function keys are reserved for browser-based functions, you'd have to resort to some pretty complicated javascript (outside the Storyline shell) to be able to bypass them.
Have a look at these threads :
http://www.webdeveloper.com/forum/showthread.php?64652-disable-function-key-F1
http://www.dynamicdrive.com/forums/showthread.php?47959-Disable-browser-F1-and-replace-with-own-content
http://www.quirksmode.org/js/keys.html
Hope it helps,
Alex
Thanks, Alex.
Is it possible to execute the javascript within Storyline?
I assume that you can, but having not played around with something like that, I can't be sure.
You could try to copy a code snippet from one of the above links, and paste it inside a javascript trigger and see if it works though.
Hi Cheryl,
We are trying to develop computer simulations for an AS400 system at my company right now. I came across your thread looking for a solution, to which we have yet to find one. Can you tell me if you were able to achieve resolution on your project somehow? If so, it would be great to hear details....
Thank you in advance,
Tara
Hi Tara:
No, I was not able to come up with a solution. What we ended up doing was placing an image of a computer keyboard on the screen and creating hotspots over the F keys for the learner to click with the mouse. It did not achieve the most realistic user experience, but it was good enough. Ideally, we would have liked for the learner to press the actual F keys on their computer keyboard to simulate accurately.
Cheryl, thanks for letting me know! We discussed doing that as well...not sure what we will do. If we come up with something, I'll post it
Thanks!
Tara - I, too, am designing simulations for AS400. Were you able to figure out how to handle teh F-keys?
Thanks!
Hi Matthew!
This thread is dated and I'm not sure that Tara is still subscribed.
Hopefully someone in the community will be able to chime in and assist you with your design.
There is another thread here that seemed to assist users if you'd like to check it out.
This discussion is closed. You can start a new discussion or contact Articulate Support.