docs: Add ALL/NO_KEYS change to migration guide

This commit is contained in:
Christian Brickhouse 2021-10-11 19:15:07 -07:00
parent 5cf4f2ec13
commit fbda5f843e
No known key found for this signature in database
GPG Key ID: FBEBD93E85F2D1EF

View File

@ -71,6 +71,21 @@ var trial = {
}
```
## The `choices` parameter for keyboard response trials
The `choices` parameter for keyboard response trials no longer supports `jsPsych.NO_KEYS` and `jsPsych.ALL_KEYS`, and they have been replaced by the strings `"NO_KEYS"` and `"ALL_KEYS"` respectively.
For example, if you load the `audio-keyboard-response` plugin, you can prevent any user input like...
```js
var trial = {
type: jsPsychAudioKeyboardResponse,
choices: "NO_KEYS",
stimulus: 'example.ogg',
trial_ends_after_audio: true
}
```
## Using extensions
Like plugins, extensions are now also referenced by their class.