Skip to content

jsPsych not registering keypress in Qualtrics #3347

Closed Answered by Max-Lovell
Max-Lovell asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @becky-gilbert,

You were right in that it wasn't arrow functions and involved this.listeners, which put me on the right path. The source of the issue is quite an annoying one - Qualtrics seem to have overridden the Array.from function .....(??!)

I have replaced the relevant instance of Array.from with the spread syntax […this.listeners], which is equivalent when using a simple array, and would only cause an issue in the event of Array.from being used on an object.

You can see this change here. I have published a distribution of this from a separate branch and my jsPsych example script sources from this distribution in the header. Which can bee run locally and in Qualtrics without issue.

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
1 reply
@Max-Lovell
Comment options

Comment options

You must be logged in to vote
1 reply
@Max-Lovell
Comment options

Comment options

You must be logged in to vote
4 replies
@Max-Lovell
Comment options

Answer selected by becky-gilbert
@becky-gilbert
Comment options

@becky-gilbert
Comment options

@Max-Lovell
Comment options

Comment options

You must be logged in to vote
4 replies
@Max-Lovell
Comment options

@Max-Lovell
Comment options

@jodeleeuw
Comment options

@Max-Lovell
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants