Forum Discussion
Nedim
4 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.