Skip to content

Commit e2e60e8

Browse files
committed
Change from keyup to keydown
1 parent c118a40 commit e2e60e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/jspsych-animation.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@
130130
}
131131
};
132132

133-
$(document).keyup(resp_func);
133+
$(document).keydown(resp_func);
134134

135135
function endTrial() {
136-
$(document).unbind('keyup', resp_func);
136+
$(document).unbind('keydown', resp_func);
137137

138138
block.writeData($.extend({}, {
139139
"trial_type": "animation",
@@ -150,4 +150,4 @@
150150

151151
return plugin;
152152
})();
153-
})(jQuery);
153+
})(jQuery);

0 commit comments

Comments
 (0)