miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Specific miniBB Support Forums / Specific /  
 

Submitting post form by pressing CTRL+ENTER

 
Author Rock
Partaker
#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 
thanks

Specific miniBB Support Forums / Specific /
 Submitting post form by pressing CTRL+ENTER
 Share Topic's Link

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


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑