[wp-meta] [Making WordPress.org] #2920: Shortcut to reply

Making WordPress.org noreply at wordpress.org
Mon Jul 3 20:09:55 UTC 2017

#2920: Shortcut to reply
 Reporter:  hardeepasrani   |      Owner:
     Type:  defect          |     Status:  new
 Priority:  normal          |  Milestone:
Component:  Support Forums  |   Keywords:
 It'll be great to have a quick shortcode to jump straight to the textarea
 to reply, when you've read the entire convo or when the message is small
 so you just wanna move to replying without touching your mouse.

 var bbPressReply = document.getElementById( 'bbp_reply_content' );

 jQuery( document ).on( 'keydown', function ( e ) {
         if ( e.keyCode === 82 ) {
                 if ( document.activeElement.nodeName !== 'INPUT' ) {

 I wrote the above JavaScript, not sure if it's the best practice, but
 seems like a good start. Wanted to submit a patch but can't find any JS
 files where I could add it in the Fourm's meta.

 Quick preview: When you press the key '''r''' it takes you straight to the

 Any thoughts?

Ticket URL: <https://meta.trac.wordpress.org/ticket/2920>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org

More information about the wp-meta mailing list