miniBB Support Forums
|
Forums
|
Register
|
Reply
|
Search
|
Statistics
|
Manual
|
miniBB Support Forums
/
Specific
/
Submitting post form by pressing CTRL+ENTER
Rock
Registered
#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!
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.
Guest
#3
|
Posted: 20 Aug 2011 18:00
thanks
miniBB Support Forums
/
Specific
/ Submitting post form by pressing CTRL+ENTER
↑
Top
Your Reply
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.
News & Announcements
FAQ
How To
Bugs
The Other
Official Addons and Solutions
Custom Tutorials and Modifications
Master Class
Specific
Re-cycled
Suggestions
Testimonials
qwerty
Features
Requirements
Demo
Download
Showcase
Gallery of Arts
Compiler
Premium Extensions
Premium Support
License
Contacts
Allow your miniBB-forums members communicate with each other
with the
Private Messaging add-on
!