When editing a comment in Discussions, pressing : opens the emoji picker. If I then press Escape to dismiss the picker without selecting an emoji, the entire comment editor closes — discarding my edit without any warning.
Expected behavior: Escape dismisses the emoji picker and returns focus to the comment editor.
Actual behavior: Escape closes the comment editor entirely, losing the in-progress edit.
Steps to reproduce:
-
Open a comment in Discussions and click Edit
-
Press
:to trigger the emoji picker -
Press
Escapeto dismiss the picker -
-> The edit window closes instead of just hiding the picker
This is particularly frustrating because there’s no confirmation dialog — the edit is silently discarded. The fix should scope Escape to the innermost active overlay (the emoji picker) rather than the parent editor.