<ESC> in composer close the wrong thing

When new topic/answer composer is open, if you click on “Insert date / time” image and press Esc, it minimized the composer instead of closing the “Insert date / time” modal (a second press to Esc do close the modal)

It’s odd and unexpected (but not serious). As a side note, it works with the “upload” modal for example.

(Just in case it browser related: Firefox 73.0.1 64 bits on Windows 10)

4 Likes

When the modals opens, focus keeps on insert date/time for some reason. This is why esc impacts the composer before the modal.

I will have a look at this.

7 Likes

Make sense. (for the story, I wanted to open the “Emoji” thing but misclicked on the date instead! Esc to cancel my mistake…)

Thank you for your time!

3 Likes

Will be fixed by:

https://github.com/discourse/discourse/pull/9299

Thanks

8 Likes