diff --git a/Iceshrimp.Frontend/Components/ConfirmDialog.razor b/Iceshrimp.Frontend/Components/ConfirmDialog.razor index 14431dc9..32512ba1 100644 --- a/Iceshrimp.Frontend/Components/ConfirmDialog.razor +++ b/Iceshrimp.Frontend/Components/ConfirmDialog.razor @@ -6,7 +6,7 @@ @inject IJSRuntime Js; @inject IStringLocalizer Loc; - +
@if (Waiting) { @@ -65,7 +65,7 @@ await CloseDialog(); } - private async Task HandleKeyDown(KeyboardEventArgs e) + private async Task HandleKeys(KeyboardEventArgs e) { if (e is { Code: "Enter" }) { diff --git a/Iceshrimp.Frontend/Components/NoticeDialog.razor b/Iceshrimp.Frontend/Components/NoticeDialog.razor index 27d71910..77d4cd21 100644 --- a/Iceshrimp.Frontend/Components/NoticeDialog.razor +++ b/Iceshrimp.Frontend/Components/NoticeDialog.razor @@ -6,7 +6,7 @@ @inject IJSRuntime Js; @inject IStringLocalizer Loc; - +
@switch (Type) @@ -57,7 +57,7 @@ await _module.InvokeVoidAsync("openDialog", Dialog); } - private async Task HandleKeyDown(KeyboardEventArgs e) + private async Task HandleKeys(KeyboardEventArgs e) { if (e is { Code: "Enter" or "Escape" }) { diff --git a/Iceshrimp.Frontend/Components/PromptDialog.razor b/Iceshrimp.Frontend/Components/PromptDialog.razor index bd60828f..adf077c8 100644 --- a/Iceshrimp.Frontend/Components/PromptDialog.razor +++ b/Iceshrimp.Frontend/Components/PromptDialog.razor @@ -5,7 +5,7 @@ @inject IJSRuntime Js; @inject IStringLocalizer Loc; - +
@if (Waiting) { @@ -79,7 +79,7 @@ await CloseDialog(); } - private async Task HandleKeyDown(KeyboardEventArgs e) + private async Task HandleKeys(KeyboardEventArgs e) { if (MultiLine && e is { Code: "Enter", CtrlKey: true } or { Code: "Enter", MetaKey: true } || !MultiLine && e is { Code: "Enter" }) { diff --git a/Iceshrimp.Frontend/Components/SelectDialog.razor b/Iceshrimp.Frontend/Components/SelectDialog.razor index 1fad0136..dff78c9d 100644 --- a/Iceshrimp.Frontend/Components/SelectDialog.razor +++ b/Iceshrimp.Frontend/Components/SelectDialog.razor @@ -5,7 +5,7 @@ @inject IJSRuntime Js; @inject IStringLocalizer Loc; - +
@if (Waiting) { @@ -71,7 +71,7 @@ await CloseDialog(); } - private async Task HandleKeyDown(KeyboardEventArgs e) + private async Task HandleKeys(KeyboardEventArgs e) { if (e is { Code: "Enter" }) {