45 references to Escape
System.Windows.Forms (35)
System\Windows\Forms\ActiveX\Control_ActiveXControlInterfaces.cs (1)
46if (IsInputKey(Keys.Escape))
System\Windows\Forms\Components\KioskModeManager\KioskModeManager.cs (1)
822else if (keyData == Keys.Escape && _escapeExitsFullScreen && _isFullScreen)
System\Windows\Forms\Control.cs (2)
8409&& (e.KeyCode.HasFlag(Keys.ControlKey) || e.KeyCode == Keys.Escape)) 13725|| IsKeyDown(Keys.Escape, stateArray);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (6)
1536if (keyChar == (char)(int)Keys.Escape) 2148else if (keyChar == (char)Keys.Escape) 2154if (keyChar != (char)Keys.Escape && keyChar != (char)Keys.Return && !DroppedDown 2223if (keyCode is Keys.Return or Keys.Escape) 2562else if ((e.KeyCode == Keys.Escape) && _autoCompleteDroppedDown) 2584if (!e.Handled && (e.KeyChar == (char)(int)Keys.Return || e.KeyChar == (char)(int)Keys.Escape)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
10130case Keys.Escape: 15772case Keys.Escape: 20127else if (key == Keys.Escape) 22016Keys.Escape or Keys.Space => true, 22025or Keys.Escape 24576case Keys.Escape:
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
94(DroppedDown && (maskedKeyData == Keys.Escape)) ||
System\Windows\Forms\Controls\ListView\ListView.cs (1)
4291case Keys.Escape:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
2055case 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: 259case Keys.Escape:
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
803if (_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)
1851if (keyCode is Keys.Return or Keys.Escape)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1655case Keys.Escape:
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
2792case Keys.Escape: // escape and menu key should restore focus
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1371if ((keyData & Keys.KeyCode) == Keys.Escape)
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
1812case Keys.Escape:
System\Windows\Forms\DataBinding\BindingNavigator.cs (1)
744case Keys.Escape:
System\Windows\Forms\Form.cs (1)
4800case 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)
459if (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)
323if ((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)
83if (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)
1039case Keys.Escape: