57 references to Escape
System.Windows.Forms (34)
System\Windows\Forms\ActiveX\Control_ActiveXControlInterfaces.cs (1)
46
if (IsInputKey(Keys.
Escape
))
System\Windows\Forms\Control.cs (2)
7616
&& (e.KeyCode.HasFlag(Keys.ControlKey) || e.KeyCode == Keys.
Escape
))
12789
|| IsKeyDown(Keys.
Escape
, stateArray);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (6)
1441
if (keyChar == (char)(int)Keys.
Escape
)
2061
else if (keyChar == (char)Keys.
Escape
)
2067
if (keyChar != (char)Keys.
Escape
&& keyChar != (char)Keys.Return && !DroppedDown
2136
if (keyCode is Keys.Return or Keys.
Escape
)
2445
else if ((e.KeyCode == Keys.
Escape
) && _autoCompleteDroppedDown)
2467
if (!e.Handled && (e.KeyChar == (char)(int)Keys.Return || e.KeyChar == (char)(int)Keys.
Escape
)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
10076
case Keys.
Escape
:
15696
case Keys.
Escape
:
20054
else if (key == Keys.
Escape
)
21940
Keys.
Escape
or Keys.Space => true,
21949
or Keys.
Escape
24495
case Keys.
Escape
:
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
95
(DroppedDown && (maskedKeyData == Keys.
Escape
)) ||
System\Windows\Forms\Controls\ListView\ListView.cs (1)
4278
case Keys.
Escape
:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
2026
case Keys.
Escape
:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
529
case Keys.
Escape
:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (2)
105
case Keys.
Escape
:
256
case Keys.
Escape
:
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
804
if (_splitTarget is not null && e.KeyCode == Keys.
Escape
)
System\Windows\Forms\Controls\Splitter\Splitter.SplitterMessageFilter.cs (1)
26
if (m.MsgInternal == PInvokeCore.WM_KEYDOWN && (Keys)(nint)m.WParamInternal == Keys.
Escape
)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1857
if (keyCode is Keys.Return or Keys.
Escape
)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1334
case Keys.
Escape
:
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
2796
case Keys.
Escape
: // escape and menu key should restore focus
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1377
if ((keyData & Keys.KeyCode) == Keys.
Escape
)
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
1814
case Keys.
Escape
:
System\Windows\Forms\DataBinding\BindingNavigator.cs (1)
750
case Keys.
Escape
:
System\Windows\Forms\Form.cs (1)
4712
case Keys.
Escape
:
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
935
if (e.KeyData == Keys.
Escape
&& _splitBegin)
System\Windows\Forms\Layout\Containers\SplitContainer.SplitContainerMessageFilter.cs (1)
24
if ((m.MsgInternal == PInvokeCore.WM_KEYDOWN && (Keys)(nint)m.WParamInternal == Keys.
Escape
)
System\Windows\Forms\SendKeys\SendKeys.cs (2)
26
new("ESC", Keys.
Escape
),
27
new("ESCAPE", Keys.
Escape
),
System.Windows.Forms.Design (10)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
462
if (keyData == Keys.
Escape
)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
80
case Keys.
Escape
:
System\ComponentModel\Design\ObjectSelectorEditor.Selector.cs (1)
105
case Keys.
Escape
:
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
304
if ((keyData & Keys.KeyCode) == Keys.
Escape
&& (keyData & (Keys.Alt | Keys.Control)) == 0)
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (1)
269
if ((keyData & Keys.Modifiers) == 0 && (keyData & Keys.KeyCode) == Keys.
Escape
)
System\Windows\Forms\Design\FormatStringDialog.cs (1)
249
case Keys.
Escape
:
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
77
if (keyData == Keys.
Escape
)
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
304
case Keys.
Escape
:
System\Windows\Forms\Design\StringCollectionEditor.StringCollectionForm.cs (1)
38
if (e.KeyCode != Keys.
Escape
)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1084
case Keys.
Escape
:
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDownTests.cs (1)
36
bool processDialogKey = dropDown.TestAccessor().Dynamic.ProcessDialogKey(Keys.
Escape
);
System.Windows.Forms.Tests (12)
KeyboardTooltipStateMachineTests.cs (3)
52
[InlineData(Keys.
Escape
)]
81
[InlineData(Keys.
Escape
, true)]
84
[InlineData(Keys.
Escape
, false)]
System\Windows\Forms\ControlTests.Methods.cs (3)
4392
yield return new object[] { Keys.
Escape
, false };
4422
yield return new object[] { Keys.Control | Keys.
Escape
, false };
4452
yield return new object[] { Keys.Alt | Keys.
Escape
, false };
System\Windows\Forms\SplitterTests.cs (1)
1822
yield return new object[] { new KeyEventArgs(Keys.
Escape
) };
System\Windows\Forms\TabControlTests.cs (3)
3994
yield return new object[] { Keys.
Escape
, false };
4019
yield return new object[] { Keys.Control | Keys.
Escape
, false };
4048
yield return new object[] { Keys.Alt | Keys.
Escape
, false };
TextBoxBaseTests.cs (2)
5188
yield return new object[] { multiline, acceptsTab, readOnly, Keys.
Escape
, false };
5189
yield return new object[] { multiline, acceptsTab, readOnly, Keys.
Escape
| Keys.Alt, false };