I have the following in javascript. I would like to fire an action when the user presses enter rather than double click. How would I go about this?
$(document).on("dblclick", ".chooser select.right", function() {
move($(this).parents(".chooser"), ".right", ".left");
});