ESC Closes Comment Editor Instead of Dismissing Emoji Picker

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:

  1. Open a comment in Discussions and click Edit

  2. Press : to trigger the emoji picker

  3. Press Escape to dismiss the picker

  4. -> 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.

Thank you for your report. It’s been added to our tracker and will be looked into.