[wp-trac] [WordPress Trac] #62346: "Close comment reply form on Escape" feature causes accidental sabotage
WordPress Trac
noreply at wordpress.org
Mon Nov 4 20:11:12 UTC 2024
#62346: "Close comment reply form on Escape" feature causes accidental sabotage
-------------------------------------------------+-------------------------
Reporter: yellowafterlife | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: General | Version: 6.6.2
Severity: normal | Keywords:
Focuses: ui, accessibility, javascript, |
administration |
-------------------------------------------------+-------------------------
This is kind of like [https://core.trac.wordpress.org/ticket/54548
#54548], but in a different scenario.
Here's a thing that happens every now and then:
- I write an in-depth reply to a comment.
- I decide to double-check spelling, so I press Menu to open the context
menu.
- "Check Spelling" turns out to be already on, so I press Escape to
dismiss the context menu.
-
[https://github.com/WordPress/WordPress/blob/fd6357ae7bde138ecfd7b24969ed19d013d9b6d3
/wp-admin/js/edit-comments.js#L1039-L1042 This snippet] catches the
"keyup" event, closing the comment reply form and dismissing everything
that I just typed.
- I let out a disappointed sigh and write a much shorter reply.
But there's more! This only happens in Firefox - in Chromium-based
browsers the `keyup` event doesn't seem to be triggered at all (?)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62346>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list