3 writes to Key
Aspire.Dashboard.Components.Tests (2)
Controls\AspireMenuTests.cs (2)
552
await menuHost.Find("fluent-menu-item").KeyDownAsync(new KeyboardEventArgs {
Key
= "ArrowDown" });
555
await menuHost.Find("fluent-menu-item").KeyDownAsync(new KeyboardEventArgs {
Key
= key });
Microsoft.AspNetCore.Components.Web (1)
WebEventData\KeyboardEventArgsReader.cs (1)
30
eventArgs.
Key
= property.Value.GetString()!;
5 references to Key
Aspire.Dashboard (4)
Components\Controls\ApplicationSummary.razor.cs (1)
609
if (args.
Key
is "Enter" or " ")
Components\Controls\AspireMenuButton.razor.cs (1)
156
if (args is not null && args.
Key
== "Escape")
Components\Controls\AspireMenuItem.razor.cs (1)
62
args.
Key
is "Enter" or " " ? OnItemActivated.InvokeAsync(Item) : Task.CompletedTask;
Components\Controls\ResourceTagEditor.razor.cs (1)
146
switch (e.
Key
)
Microsoft.AspNetCore.Components.AI (1)
Components\MessageInput.cs (1)
141
if (e.
Key
== "Enter" && !e.ShiftKey && !_isDisabled)