Forum Discussion
eLearningmLearn
12 years agoCommunity Member
Function Keys Interactivity in Storyline Using JavaScript
I am creating simulation for a software in storyline. This simulation has function keys interactivity - F2,F3,F10,F11.
I was able to write trigger code - Jump to Slide when user presses F3 keys. ...
LynnStocks
12 years agoCommunity Member
I think I may have a solution for you.
go to this website
http://www.quirksmode.org/js/keys.html
determine the keycode for the functino key you want to disable (F1 is 112, F2 is 113 etc)
add a trigger to the slide that needs to have the function key disabled to execute javascript.when timeline starts and enter this script.
document.onkeydown = function (e) {
if(e.which == 113){
return false;
}
}
changing the number 113 to whatever the code is for your function key,
it really works