TCWT Posted July 24, 2007 Posted July 24, 2007 After you click on the Fast Reply button, the cursor should already be in the text field so you don't need to click again. ;)
Rοb Posted July 25, 2007 Posted July 25, 2007 I have to click into the text field whilst using the standard "Add Reply", should that not be the case?
Nils Posted July 25, 2007 Posted July 25, 2007 Nice idea - to add this feature manually, open the skin group "Topic View", edit the template bit "quick_reply_box_closed" and adddocument.getElementById('fast-reply_textarea').focus(); at the end of the HREF attribute, so it looks something like this: <a href="java script:ShowHide('qr_open','qr_closed'); document.getElementById('fast-reply_textarea').focus();" title="{$this->ipsclass->lang['qr_open']}" accesskey="f"><{T_QREPLY}></a>(it's not actually supposed to say java script: with a space)
TCWT Posted July 26, 2007 Posted July 26, 2007 I have to click into the text field whilst using the standard "Add Reply", should that not be the case?That's normal. Perhaps, it should be applied to the standard Add Reply too.Thanks for the code. :)
Nils Posted July 26, 2007 Posted July 26, 2007 That's normal. Perhaps, it should be applied to the standard Add Reply too.Thanks for the code. :)See here: http://hbtronix.de/IPB/textarea-auto-focus.html
TCWT Posted July 26, 2007 Posted July 26, 2007 Thanks, any way to not apply it to Add New Topic? Cursor should be on Topic Title field when creating new topics. :DEDIT: and while we're at it, the cursor should be on recipient's field when composing PMs. :thumbsup:
Nils Posted July 27, 2007 Posted July 27, 2007 Updated version:http://hbtronix.de/IPB/form-auto-focus.html
Rοb Posted July 27, 2007 Posted July 27, 2007 That's normal. Perhaps, it should be applied to the standard Add Reply too.Ah ok cheers, just wondered why you didn't mention the standard reply, it was if it already has that feature!Cheers :)
TCWT Posted July 27, 2007 Posted July 27, 2007 Thanks again, I hope bfarber adds these small yet useful mods to 2.3.2 :D
TCWT Posted July 27, 2007 Posted July 27, 2007 BTW, this does not work:# Open the skin group 'Post / PM Editor' of your skin and edit the template bit 'ips_editor'# In the beginning add:<script type="text/javascript">setAutoFocus('{$editor_id}_textarea');</script>
Nils Posted July 27, 2007 Posted July 27, 2007 What do you mean it doesn't work? What happens when you add it?
TCWT Posted July 27, 2007 Posted July 27, 2007 The cursor doesn't appear on the text area when you do a normal add reply.
Nils Posted July 27, 2007 Posted July 27, 2007 Are you using the RTE? The script only works with the normal editor, since you can't use Javascript to focus on the RTE (as far as I know).
Nils Posted July 28, 2007 Posted July 28, 2007 I updated the code a bit and added support for the RTE. Maybe that helps.http://hbtronix.de/IPB/form-auto-focus.html
Lt. Lawl Posted July 28, 2007 Posted July 28, 2007 Concerning the fast reply... why aren't their mod actions in the fast reply yet?
Michael Posted July 28, 2007 Posted July 28, 2007 Because it's for fast replies, not for replies that require moderator action.
Lt. Lawl Posted July 28, 2007 Posted July 28, 2007 That's funny because I only use the normal reply when I have to close a topic. Hell I wouldn't have to use normal reply if there were mod actions in the fast reply. It just seems to me that such a logical modification would have been implanted into IPB by now instead of staying 3rd party.
TCWT Posted August 7, 2007 Posted August 7, 2007 Actually having the cursor automatically jump to the text field on the regular reply and PM editor may not be such a good idea. Whenever you Preview a message/post, the page jumps down and you'll have to scroll back up.. it's kinda annoying. I think I'm going to just apply it for Fast Reply only.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.