(function($) { $.fn.handleEnterKey = function(func) { // handle keyup for enter triggering finish var jEl = jQuery(this); jEl.on('keyup', function(event){ if(event.keyCode == 13){ func && func(); } }); }; $.fn.disableEnterKeyHandling = function() { var jEl = jQuery(this); jEl.off('keyup'); } }(jQuery));
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 16445 | christiane_renck | Rename/move file(s) | ||
//guest/christiane_renck/MergeQuestJS/main/src/lib/jquery/jquery.enterkey.js | |||||
#1 | 16444 | christiane_renck | Adding MergeQuestJS to the Workshop. |