miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

Submitting post form by pressing CTRL+ENTER

Author Rock
#1 | Posted: 25 May 2009 19:33 
Hi everyone! :)

I am trying to implement on my forum such function as posting message/topic by pressing ctrl+enter. But I stucked with the follown matter.

So, I thought that I shoul add in main_post_form.html something like :
onkeypress="if((event.ctrlKey) && ((event.keyCode==10)||(event.keyCode==13))) {this.form.submit();}"

But nothing happened. Could anyone help me this that issue?

Thanks a lot in advance!

Author Paul
Lead Developer
#2 | Posted: 26 May 2009 00:47 
Don't call .submit method, pay attention how the current form proceeds and call the proper JavaScript function.

I wouldn't recommend to touch this form at all. It's used in many other add-ons and such approach may turn your form not working at all on some browsers.

Author Guest
#3 | Posted: 20 Aug 2011 18:00 

Specific miniBB Support Forums / Specific / Submitting post form by pressing CTRL+ENTER Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB