Forum Discussion
EdwardAgadja170
7 months agoCommunity Member
Storyline apparently doesn't register triggers anymore
So I'm trying to advance to the next layer by having the learner press the CTRL + K key after typing a name in the text entry field. For no reason whatsoever, Storyline doesn't register this. I trie...
Nedim
7 months agoCommunity Member
If you prefer not to evaluate the learner's input, eliminating the text entry value condition from the equation will trigger this action with Ctrl + K. If you want to monitor and update the TextEntry3 value as it's being typed without it being constantly in focus, you can use the following JavaScript code and adjust the trigger as indicated in the screenshot:
const inputs = document.querySelectorAll('.acc-textinput');
inputs.forEach((i) => {
i.addEventListener('keyup', () => {
i.blur();
i.focus();
});
});
With this setup, pressing Ctrl + K won't trigger any action if the TextEntry3 value is not "Ronda Sherman" (case insensitive). However, if it matches, Ctrl + K will proceed to the next layer.