diff --git a/ErsatzTV/Shared/AddToScheduleDialog.razor b/ErsatzTV/Shared/AddToScheduleDialog.razor
index 1468ccfed..6a0ae0d1a 100644
--- a/ErsatzTV/Shared/AddToScheduleDialog.razor
+++ b/ErsatzTV/Shared/AddToScheduleDialog.razor
@@ -2,28 +2,30 @@
@using ErsatzTV.Application.ProgramSchedules.Queries
@inject IMediator Mediator
-
-
-
-
-
-
- @foreach (ProgramScheduleViewModel schedule in _schedules)
- {
- @schedule.Name
- }
-
-
-
- Cancel
-
- Add To Schedule
-
-
-
+
+
+
+
+
+
+
+ @foreach (ProgramScheduleViewModel schedule in _schedules)
+ {
+ @schedule.Name
+ }
+
+
+
+ Cancel
+
+ Add To Schedule
+
+
+
+
@code {
@@ -54,5 +56,13 @@
private void Submit() => MudDialog.Close(DialogResult.Ok(_selectedSchedule));
private void Cancel() => MudDialog.Cancel();
+
+ private void OnKeyDown(KeyboardEventArgs e)
+ {
+ if (e.Code is "Enter" or "NumpadEnter")
+ {
+ Submit();
+ }
+ }
}
\ No newline at end of file
diff --git a/ErsatzTV/Shared/DeleteDialog.razor b/ErsatzTV/Shared/DeleteDialog.razor
index e72f94f87..248a99083 100644
--- a/ErsatzTV/Shared/DeleteDialog.razor
+++ b/ErsatzTV/Shared/DeleteDialog.razor
@@ -1,26 +1,28 @@
-
-
-
-
-
- @if (!string.IsNullOrWhiteSpace(DetailText))
- {
-
+
+
+
+
+ Text="@FormatText()"
+ HighlightedText="@EntityName"/>
- }
-
-
- Cancel
- Delete
-
-
+ @if (!string.IsNullOrWhiteSpace(DetailText))
+ {
+
+
+
+ }
+
+
+ Cancel
+ Delete
+
+
+
@code {
@@ -44,5 +46,13 @@
private void Submit() => MudDialog.Close(DialogResult.Ok(true));
private void Cancel() => MudDialog.Cancel();
+
+ private void OnKeyDown(KeyboardEventArgs e)
+ {
+ if (e.Code is "Enter" or "NumpadEnter")
+ {
+ Submit();
+ }
+ }
}
\ No newline at end of file
diff --git a/ErsatzTV/Shared/RemoveFromCollectionDialog.razor b/ErsatzTV/Shared/RemoveFromCollectionDialog.razor
index da643724b..4f645a6a0 100644
--- a/ErsatzTV/Shared/RemoveFromCollectionDialog.razor
+++ b/ErsatzTV/Shared/RemoveFromCollectionDialog.razor
@@ -1,21 +1,23 @@
@inject IMediator Mediator
-
-
-
-
-
-
-
- Cancel
-
- Remove From Collection
-
-
-
+
+
+
+
+
+
+
+
+ Cancel
+
+ Remove From Collection
+
+
+
+
@code {
@@ -39,5 +41,13 @@
private void Submit() => MudDialog.Close(DialogResult.Ok(true));
private void Cancel() => MudDialog.Cancel();
+
+ private void OnKeyDown(KeyboardEventArgs e)
+ {
+ if (e.Code is "Enter" or "NumpadEnter")
+ {
+ Submit();
+ }
+ }
}
\ No newline at end of file
diff --git a/ErsatzTV/Shared/SignOutOfPlexDialog.razor b/ErsatzTV/Shared/SignOutOfPlexDialog.razor
index 71300ec9b..901ac8db2 100644
--- a/ErsatzTV/Shared/SignOutOfPlexDialog.razor
+++ b/ErsatzTV/Shared/SignOutOfPlexDialog.razor
@@ -1,16 +1,18 @@
-
-
-
-
-
-
-
- Cancel
- Sign out
-
-
+
+
+
+
+
+
+
+
+ Cancel
+ Sign out
+
+
+
@code {
@@ -21,4 +23,11 @@
private void Cancel() => MudDialog.Cancel();
+ private void OnKeyDown(KeyboardEventArgs e)
+ {
+ if (e.Code is "Enter" or "NumpadEnter")
+ {
+ Submit();
+ }
+ }
}
\ No newline at end of file