Skip to content

Commit

Permalink
Change from keyup to keydown
Browse files Browse the repository at this point in the history
  • Loading branch information
jodeleeuw committed Jan 16, 2014
1 parent c118a40 commit e2e60e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/jspsych-animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@
}
};

$(document).keyup(resp_func);
$(document).keydown(resp_func);

function endTrial() {
$(document).unbind('keyup', resp_func);
$(document).unbind('keydown', resp_func);

block.writeData($.extend({}, {
"trial_type": "animation",
Expand All @@ -150,4 +150,4 @@

return plugin;
})();
})(jQuery);
})(jQuery);

0 comments on commit e2e60e8

Please sign in to comment.