I want to disable the button enter on the textarea in the form.
You can set custom onkeypress event handler to textarea:
scheduler.form_blocks.textarea.set_value=function(node,value,ev){
node.firstChild.onkeypress = function(e){
var key = (e||event).keyCode;
if(key==13) (e||event).cancelBubble=true;
return true
};
node.firstChild.value = value||"";
}
Is it possible to map or change the key “enter” to become “shift-enter” to create a new line?
>> Is it possible to map or change the key “enter” to become “shift-enter” to create a new line?
This is default behaviour.