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