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