miniBB ®
 
miniBB Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Forums Checker addon for miniBB Check-up your forums instantly without missing any new posting using the Forums Checker add-on!
Specific miniBB Community Forum / Specific /
Short link for this topic:

Submitting post form by pressing CTRL+ENTER

Author Rock
Forums Member
#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
CEO
#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.
Specific miniBB Community Forum / Specific / Submitting post form by pressing CTRL+ENTER Top
Your Reply Click this icon to move up to the quoted message

» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership 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 Community Forum Powered by Free Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts