[wp-trac] [WordPress Trac] #41545: Allow cmd/ctrl-enter to submit comment forms

WordPress Trac noreply at wordpress.org
Tue Aug 8 12:43:42 UTC 2017


#41545: Allow cmd/ctrl-enter to submit comment forms
-------------------------------------------------+-------------------------
 Reporter:  helen                                |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Comments                             |  Review
 Severity:  minor                                |     Version:
 Keywords:  good-first-bug needs-testing has-    |  Resolution:
  patch                                          |     Focuses:  javascript
-------------------------------------------------+-------------------------
Changes (by Lindstromer):

 * keywords:  good-first-bug needs-patch => good-first-bug needs-testing
     has-patch


Comment:

 The patch is functioning in Firefox, Safari and Chrome on OS X when using
 Ctrl or Cmd + Enter. Needs testing on different operating systems to see
 that it picks upp the key kombination as expected.

 The solution isn't to clean for the frontend part, where I had to
 workaround the fact that submit() is overwritten by the submit-button id.

 An alternative would be to refactor the whole form output and give it a
 better id but I'm guessing that it could create issues.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41545#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list