Commit 766ad4f8 authored by Dasoo Milton Yoon's avatar Dasoo Milton Yoon

k, s

parent de440189
......@@ -58,7 +58,7 @@
<Param name="wrapWidth" updates="constant" val="" valType="code"/>
</TextComponent>
<KeyboardComponent name="key_resp">
<Param name="allowedKeys" updates="constant" val="'space'" valType="code"/>
<Param name="allowedKeys" updates="constant" val="'s','k'" valType="code"/>
<Param name="correctAns" updates="constant" val="" valType="str"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="discard previous" updates="constant" val="True" valType="bool"/>
......
......@@ -1084,7 +1084,7 @@ function trialRoutineEachFrame() {
}
if (key_resp.status === PsychoJS.Status.STARTED) {
let theseKeys = key_resp.getKeys({keyList: ['space'], waitRelease: false});
let theseKeys = key_resp.getKeys({keyList: ['s', 'k'], waitRelease: false});
// check for quit:
if (theseKeys.length > 0 && theseKeys[0].name === 'escape') {
......
......@@ -1082,7 +1082,7 @@ function trialRoutineEachFrame() {
}
if (key_resp.status === PsychoJS.Status.STARTED) {
let theseKeys = key_resp.getKeys({keyList: ['space'], waitRelease: false});
let theseKeys = key_resp.getKeys({keyList: ['s', 'k'], waitRelease: false});
// check for quit:
if (theseKeys.length > 0 && theseKeys[0].name === 'escape') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment