Pressing Shift+Enter will result in new line breaks.
Additionally a hint is shown in the bottom right corner of the textarea.
Usage:
$(document).ready(function(){
$('textarea').shiftenter();
});
Here are some key features of "jquery-shiftenter":
Configurable settings:
· focusClass - 'shiftenter', CSS class used on focus
· inactiveClass - 'shiftenterInactive', CSS class used when no focus
· hint - 'Shift+Enter for line break', hint shown
Requirements:
· JavaScript enabled on client side
· jQuery 1.5 or higher
What's New in This Release: [ read full changelog ]
· Also allow for CTRL instead of SHIFT, fix resize for Google Chrome.