Pressing [CTRL+] Enter closes the alt-text modal
Author: cadusilvaCreated Sep 28, 2026Updated Sep 28, 2026
Labelsarea/web interface
Steps to reproduce the problem
- Add an image to the composer field
- Click Edit and add any text to the description field
- Press Enter or CTRL + Enter
- The modal closes
Expected behaviour
The modal doesn't close, the user can add line breaks
Actual behaviour
The modal closes and line breaks are not possible
Detailed description
I'm all in for closing the alt-text modal by pressing CTRL + Enter just like it works for sending a toot, but closing even when pressing Enter is an annoying behavior. Sometimes the user may want to add a line break and then the modal closes when pressing any of the mentioned keys.
And just pressing Enter not only closes the modal but the description already typed may be lost.
Mastodon instance
bolha.one, ursal.zone
Mastodon version
4.8.0-alpha.3 (35c3450+bolhinha-mods)
Browser name and version
LibreWolf 156.0.1-1, Helium 0.18.1.1 (Chromium 154.0.8037.57)
Operating system
Debian 13
Technical details
No response
Source: mastodon/mastodon