Cannot get text to appear as it is typed

6 views
Skip to first unread message

Adam Goodkind

unread,
Feb 19, 2021, 7:58:51 PM2/19/21
to jsPsych
Hi all,

I am trying to get text to appear on-screen as it is typed. This was done successfully in [this experiment](https://github.com/CrumpLab/jspsychrexamples/blob/master/Stroop_multiple_response/experiment/index.html), after the creator modified the html-keyboard-response plugin to be a [html-keyboard-multiple-response](https://github.com/CrumpLab/jspsychrexamples/blob/master/Stroop_multiple_response/experiment/jspsych-6/plugins/jspsych-html-keyboard-multiple-response.js) plugin.

I have tried to combine this plugin with the image-keyboard-response, to use images instead of html as stimuli. The problem is that the text doesn't appear as it is typed, unlike in html-keyboard-multiple-response. I know the keystrokes are being logged, since they show up at the end with displayData().


Would it be possible to take a quick look at the plugin, to see if I miscoded something in combining the other two plugins? I believe the error is near line 83 in my image plugin, which is meant to correspond to line ~61 in the html plugin. Is there something I should change in my image plugin so that the text appears as it is typed, as occurs in the html plugin?

Thanks,
Adam
Reply all
Reply to author
Forward
0 new messages