mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
docs: Add ALL/NO_KEYS change to migration guide
This commit is contained in:
parent
5cf4f2ec13
commit
fbda5f843e
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user