You are absolutely right about the "Enter key", and this is very important in many cases to maintain a good user experience for the form elements. A simple solution to adopt the behavior of the Enter key is this code snip-it:
handleEnterKeyPress: function (e) {
if(e.which == 13){
e.target.blur();
}
return false;
}
Comment
return false doesn't have an effect here; this isn't jQuery
Parent comment
You are absolutely right about the "Enter key", and this is very important in many cases to maintain a good user experience for the form elements. A simple solution to adopt the behavior of the Enter key is this code snip-it: handleEnterKeyPress: function (e) { if(e.which == 13){ e.target.blur(); } return false; }