18 references to ControlKey
System.Windows.Forms (9)
System\Windows\Forms\Control.cs (2)
2519
if (PInvoke.GetKeyState((int)Keys.
ControlKey
) < 0)
7621
&& (e.KeyCode.HasFlag(Keys.
ControlKey
) || e.KeyCode == Keys.Escape))
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
693
case Keys.
ControlKey
:
System\Windows\Forms\SendKeys\SendKeys.cs (6)
147
AddEvent(new SKEvent(PInvokeCore.WM_KEYDOWN, (uint)Keys.
ControlKey
, startNewChar, hwnd));
205
AddEvent(new SKEvent(PInvokeCore.WM_KEYUP, (int)Keys.
ControlKey
, false, hwnd));
495
AddEvent(new SKEvent(PInvokeCore.WM_KEYDOWN, (uint)Keys.
ControlKey
, s_startNewChar, hwnd));
540
AddEvent(new SKEvent(PInvokeCore.WM_KEYDOWN, (uint)Keys.
ControlKey
, s_startNewChar, hwnd));
782
else if (skEvent.ParamL == (int)Keys.
ControlKey
)
798
AddEvent(new SKEvent(PInvokeCore.WM_KEYUP, (int)Keys.
ControlKey
, false, default));
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ComponentTray.cs (1)
2165
_ctrlSelect = PInvoke.GetKeyState((int)Keys.
ControlKey
) != 0;
System.Windows.Forms.Tests (8)
KeyboardTooltipStateMachineTests.cs (6)
51
[InlineData(Keys.
ControlKey
)]
53
[InlineData(Keys.
ControlKey
| Keys.ShiftKey | Keys.F10)]
80
[InlineData(Keys.
ControlKey
, true)]
82
[InlineData(Keys.
ControlKey
| Keys.ShiftKey | Keys.F10, true)]
83
[InlineData(Keys.
ControlKey
, false)]
85
[InlineData(Keys.
ControlKey
| Keys.ShiftKey | Keys.F10, false)]
System\Windows\Forms\SendKeysTests.cs (2)
19
Assert.Equal(Keys.
ControlKey
, form.KeyEvents[0].KeyCode);
22
Assert.Equal(Keys.
ControlKey
, form.KeyEvents[2].KeyCode);