|
|
|
|
@ -2,6 +2,7 @@
@@ -2,6 +2,7 @@
|
|
|
|
|
@using ErsatzTV.Application.ProgramSchedules.Queries |
|
|
|
|
@inject IMediator Mediator |
|
|
|
|
|
|
|
|
|
<div @onkeydown="@OnKeyDown"> |
|
|
|
|
<MudDialog> |
|
|
|
|
<DialogContent> |
|
|
|
|
<MudContainer Class="mb-6"> |
|
|
|
|
@ -24,6 +25,7 @@
@@ -24,6 +25,7 @@
|
|
|
|
|
</MudButton> |
|
|
|
|
</DialogActions> |
|
|
|
|
</MudDialog> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
@code { |
|
|
|
|
|
|
|
|
|
@ -55,4 +57,12 @@
@@ -55,4 +57,12 @@
|
|
|
|
|
|
|
|
|
|
private void Cancel() => MudDialog.Cancel(); |
|
|
|
|
|
|
|
|
|
private void OnKeyDown(KeyboardEventArgs e) |
|
|
|
|
{ |
|
|
|
|
if (e.Code is "Enter" or "NumpadEnter") |
|
|
|
|
{ |
|
|
|
|
Submit(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |