[wp-trac] [WordPress Trac] #30979: Check for context menu before closing commentReply

WordPress Trac noreply at wordpress.org
Sun Jan 11 14:40:42 UTC 2015


#30979: Check for context menu before closing commentReply
-----------------------------------------------+---------------------------
 Reporter:  jesin                              |      Owner:
     Type:  enhancement                        |     Status:  new
 Priority:  normal                             |  Milestone:  Awaiting
Component:  Comments                           |  Review
 Severity:  normal                             |    Version:
  Focuses:  ui, accessibility, administration  |   Keywords:
-----------------------------------------------+---------------------------
 Login to WP-Admin, go to the comments section and "Quick edit" or "Reply"
 to a comment.

 Bring up the context menu either with a right-click or the menu key, press
 ESC and the context menu and the comment box will close.

 [[Image(https://i.imgur.com/xnhrZDr.png)]]

 I understand that this is the expected behaviour but this can be
 frustrating at times.

 If you bring up the context menu while typing a long reply but decide not
 to autocorrect and press ESC to close the context menu everything you've
 typed so far is gone :(

 The "Compose email" section of both Gmail and Outlook.com close themselves
 when ESC is pressed but don't if the context menu is open. So I thought
 WordPress should also have the same behaviour.

 The patch checks for a right click or menu key press before doing
 `commentReply.revert()`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30979>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list