39 references to ShortcutManager
Aspire.Dashboard (11)
Components\Controls\SummaryDetailsView.razor.cs (1)
68
public required
ShortcutManager
ShortcutManager { get; init; }
Components\Dialogs\KeyboardShortcutsHelp.razor.cs (1)
19
public required
ShortcutManager
ShortcutManager { get; init; }
Components\Layout\MainLayout.razor.cs (2)
33
private DotNetObjectReference<
ShortcutManager
>? _shortcutManagerReference;
83
public required
ShortcutManager
ShortcutManager { get; init; }
Components\Layout\TerminalDock.razor.cs (1)
93
public required
ShortcutManager
ShortcutManager { get; init; }
Components\Legacy\Dialogs\LegacyHelpDialog.razor.cs (1)
17
public required
ShortcutManager
ShortcutManager { get; init; }
Components\Legacy\Layout\LegacyMainLayout.razor.cs (2)
39
private DotNetObjectReference<
ShortcutManager
>? _shortcutManagerReference;
82
public required
ShortcutManager
ShortcutManager { get; init; }
DashboardWebApplication.cs (1)
431
builder.Services.AddScoped<
ShortcutManager
>();
ShortcutManager.cs (2)
13
private readonly ILogger<
ShortcutManager
> _logger = loggerFactory.CreateLogger<
ShortcutManager
>();
Aspire.Dashboard.Components.Tests (28)
Dialogs\HelpDialogTests.cs (1)
164
Services.GetRequiredService<
ShortcutManager
>().AddGlobalKeydownListener(new TestGlobalKeydownListener(subscribedShortcuts ?? []));
Dialogs\KeyboardShortcutsHelpTests.cs (7)
23
var
shortcutManager = Services.GetRequiredService<
ShortcutManager
>();
52
var
shortcutManager = Services.GetRequiredService<
ShortcutManager
>();
82
var
shortcutManager = Services.GetRequiredService<
ShortcutManager
>();
119
Services.GetRequiredService<
ShortcutManager
>().AddGlobalKeydownListener(new TestGlobalKeydownListener(
Layout\MainLayoutResourceTerminalsTests.cs (6)
37
var
shortcuts = Services.GetRequiredService<
ShortcutManager
>();
71
var
shortcuts = Services.GetRequiredService<
ShortcutManager
>();
108
var
shortcuts = Services.GetRequiredService<
ShortcutManager
>();
Layout\MainLayoutTerminalTests.cs (6)
46
var
shortcuts = Services.GetRequiredService<
ShortcutManager
>();
112
var
shortcuts = Services.GetRequiredService<
ShortcutManager
>();
185
var
shortcuts = Services.GetRequiredService<
ShortcutManager
>();
Layout\MainLayoutTests.cs (4)
92
var
shortcuts = Services.GetRequiredService<
ShortcutManager
>();
113
var
shortcuts = Services.GetRequiredService<
ShortcutManager
>();
Layout\TerminalDockTelemetryTests.cs (1)
53
await Services.GetRequiredService<
ShortcutManager
>().OnGlobalKeyDown(AspireKeyboardShortcut.ToggleTerminalDock);
Layout\TerminalDockTests.cs (2)
254
await Services.GetRequiredService<
ShortcutManager
>().OnGlobalKeyDown(AspireKeyboardShortcut.ToggleTerminalDock);
580
await Services.GetRequiredService<
ShortcutManager
>().OnGlobalKeyDown(AspireKeyboardShortcut.ToggleTerminalDock);
Shared\FluentUISetupHelpers.cs (1)
261
context.Services.AddSingleton<
ShortcutManager
>();