[frontend/components] Add Escape keybind to Compose dialog

This commit is contained in:
pancakes 2025-02-21 19:00:02 +10:00
parent da2cb76aab
commit f3d02b3ceb
No known key found for this signature in database
GPG key ID: ED53D426432B861B

View file

@ -145,6 +145,11 @@
{
if (!SendingDisabled()) await SendNote();
}
if (e is { Code: "Escape" })
{
if (!SendLock && UploadingFiles == 0) await CloseDialog();
}
}
RenderFragment DropdownIcon(NoteVisibility vis)