Topic: Hot keys and IPB
How to make, that at a forum post sending went and on ctrl+enter?
I found the code:
onKeyPress ='if (event.keyCode == 10 || (event.ctrlKey && event.keyCode == 13)) this. REPLIER.Post.click ()'
REPLIER - a form name
Post - a name textarea
I take the required code and I interpose and textarea after name = "Post". It turned out here is how:
<textarea cols = "80" rows = "15" wrap = "soft" name = "Post" onKeyPress ='if (event.keyCode == 10 || (event.ctrlKey && event.keyCode == 13)) this. REPLIER.Post.click () ' tabindex = "3" class = "textinput" onClick = "storeCaret (this);" onKeyup = "storeCaret (this);" onChange = "storeCaret (this);" onFocus = "storeCaret (this);"> </textarea>
But all the same the post does not send. In what an error?