39 references to SpecialKey
Microsoft.VisualStudioCode.Razor.IntegrationTests (39)
CodeActionsTests.cs (1)
37
await TestServices.Input.PressAsync(
SpecialKey
.Enter);
CompletionTests.cs (6)
24
await TestServices.Input.PressAsync(
SpecialKey
.End); // Go to end of line
25
await TestServices.Input.PressAsync(
SpecialKey
.Enter); // New line
55
await TestServices.Input.PressAsync(
SpecialKey
.End);
56
await TestServices.Input.PressAsync(
SpecialKey
.Enter);
86
await TestServices.Input.PressAsync(
SpecialKey
.End);
87
await TestServices.Input.PressAsync(
SpecialKey
.Enter);
DiagnosticsTests.cs (1)
45
await TestServices.Input.PressAsync(
SpecialKey
.Backspace);
FormattingTests.cs (5)
23
await TestServices.Input.PressAsync(
SpecialKey
.End);
24
await TestServices.Input.PressAsync(
SpecialKey
.Enter);
47
await TestServices.Input.PressAsync(
SpecialKey
.End);
48
await TestServices.Input.PressAsync(
SpecialKey
.Enter);
55
await TestServices.Input.PressAsync(
SpecialKey
.Escape);
GoToDefinitionTests.cs (1)
68
await TestServices.Input.PressWithPrimaryModifierAsync(
SpecialKey
.End);
Services\CompletionServices.cs (1)
21
await TestServices.Input.PressWithPrimaryModifierAsync(
SpecialKey
.Space);
Services\EditorService.cs (8)
236
await TestServices.Input.PressAsync(
SpecialKey
.Enter);
320
await TestServices.Input.PressAsync(
SpecialKey
.Enter);
349
await TestServices.Input.PressAsync(
SpecialKey
.Escape);
351
await TestServices.Input.PressAsync(
SpecialKey
.Escape);
366
await TestServices.Input.PressAsync(
SpecialKey
.Escape);
378
await TestServices.Input.PressWithShiftAsync(
SpecialKey
.ArrowLeft);
384
await TestServices.Input.PressAsync(
SpecialKey
.ArrowLeft);
417
await TestServices.Input.PressAsync(
SpecialKey
.Enter);
Services\InputService.cs (12)
14
private static string GetKeyString(
SpecialKey
key) => key switch
16
SpecialKey
.Enter => "Enter",
17
SpecialKey
.Escape => "Escape",
18
SpecialKey
.Backspace => "Backspace",
19
SpecialKey
.End => OperatingSystem.IsMacOS() ? "Meta+ArrowRight" : "End",
20
SpecialKey
.Space => "Space",
21
SpecialKey
.ArrowLeft => "ArrowLeft",
22
SpecialKey
.ArrowRight => "ArrowRight",
23
SpecialKey
.F12 => "F12",
38
public async Task PressAsync(
SpecialKey
key)
47
public async Task PressWithShiftAsync(
SpecialKey
key)
65
public async Task PressWithPrimaryModifierAsync(
SpecialKey
key)
Services\NavigationServices.cs (2)
22
await TestServices.Input.PressAsync(
SpecialKey
.F12);
61
await TestServices.Input.PressWithShiftAsync(
SpecialKey
.F12);
Services\RazorService.cs (2)
54
await TestServices.Input.PressAsync(
SpecialKey
.Escape);
85
await TestServices.Input.PressAsync(
SpecialKey
.Escape);