[frontend/components] Add Escape keybind to Compose dialog
This commit is contained in:
parent
da2cb76aab
commit
f3d02b3ceb
1 changed files with 5 additions and 0 deletions
|
@ -145,6 +145,11 @@
|
||||||
{
|
{
|
||||||
if (!SendingDisabled()) await SendNote();
|
if (!SendingDisabled()) await SendNote();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (e is { Code: "Escape" })
|
||||||
|
{
|
||||||
|
if (!SendLock && UploadingFiles == 0) await CloseDialog();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RenderFragment DropdownIcon(NoteVisibility vis)
|
RenderFragment DropdownIcon(NoteVisibility vis)
|
||||||
|
|
Loading…
Add table
Reference in a new issue