change key_press to response in html-keyboard-response plugin #638

This commit is contained in:
Becky Gilbert 2021-02-17 13:55:55 -08:00
parent fe5f14dae4
commit 3580b29767
2 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ In addition to the [default data collected by all plugins](/overview/plugins#dat
| Name | Type | Value |
| --------- | ------- | ---------------------------------------- |
| key_press | string | Indicates which key the subject pressed. |
| response | string | Indicates which key the subject pressed. |
| rt | numeric | The response time in milliseconds for the subject to make a response. The time is measured from when the stimulus first appears on the screen until the subject's response. |
| stimulus | string | The HTML content that was displayed on the screen. |

View File

@ -89,9 +89,9 @@ jsPsych.plugins["html-keyboard-response"] = (function() {
// gather the data to store for the trial
var trial_data = {
"rt": response.rt,
"stimulus": trial.stimulus,
"key_press": response.key
rt: response.rt,
stimulus: trial.stimulus,
response: response.key
};
// clear the display