50 references to Return
System.Windows.Forms (28)
System\Windows\Forms\ActiveX\Control_ActiveXControlInterfaces.cs (1)
41if (IsInputKey(Keys.Return))
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (5)
1445else if (keyChar == (char)(int)Keys.Return && DroppedDown) 2067if (keyChar != (char)Keys.Escape && keyChar != (char)Keys.Return && !DroppedDown 2136if (keyCode is Keys.Return or Keys.Escape) 2440if (e.KeyCode == Keys.Return) 2467if (!e.Handled && (e.KeyChar == (char)(int)Keys.Return || e.KeyChar == (char)(int)Keys.Escape)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
1382sb.Append((char)Keys.Return);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
193stringBuilder.Append((char)Keys.Return);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
165stringBuilder.Append((char)Keys.Return);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
4277case Keys.Return:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (4)
2031case Keys.Return: 2322if (e.KeyCode == Keys.Return) 2780case Keys.Return: 3898case Keys.Return:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
535case Keys.Return:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (3)
109case Keys.Return: 124Keys.Tab or Keys.Return => false, 248case Keys.Return:
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (2)
538if ((keyData & Keys.KeyCode) == Keys.Return) 1857if (keyCode is Keys.Return or Keys.Escape)
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
539case Keys.Return:
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
1813case Keys.Return:
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
613if (e.KeyCode == Keys.Return && UserEdit)
System\Windows\Forms\Form.cs (1)
4699case Keys.Return:
System\Windows\Forms\Input\Keys.cs (1)
90Enter = Return,
System\Windows\Forms\Input\KeysConverter.cs (1)
40AddLocalizedKey(nameof(SR.toStringEnter), Keys.Return);
System\Windows\Forms\SendKeys\SendKeys.cs (2)
24new("ENTER", Keys.Return), 603vk = (int)Keys.Return;
System.Windows.Forms.Design (14)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (2)
66if ((keyData & Keys.KeyCode) == Keys.Return && Multiline && (keyData & Keys.Alt) == 0) 106if (e is { Control: true, KeyCode: Keys.Return, Modifiers: Keys.Control })
System\ComponentModel\Design\ObjectSelectorEditor.Selector.cs (1)
97case Keys.Return:
System\Drawing\Design\ColorEditor.ColorUI.ColorEditorListBox.cs (1)
18Keys.Return => true,
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
284if (ke.KeyCode == Keys.Return)
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
79if ((keyData & Keys.KeyCode) == Keys.Return && (keyData & (Keys.Alt | Keys.Control)) == 0)
System\Drawing\Design\SelectionPanelBase.cs (1)
81case Keys.Return:
System\Drawing\SelectionPanelBase.SelectionPanelRadioButton.cs (1)
21Keys.Left or Keys.Right or Keys.Up or Keys.Down or Keys.Return => true,
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
298if ((keyData & Keys.KeyCode) == Keys.Return && (keyData & (Keys.Alt | Keys.Control)) == 0)
System\Windows\Forms\Design\DesignBindingPicker.cs (3)
1877return (key == Keys.Return) || base.IsInputKey(key); 2090if (e.KeyData == Keys.Return && SelectedNode is not null) 2101return key == Keys.Return || base.IsInputKey(key);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1087case Keys.Return: 1564case Keys.Return:
System.Windows.Forms.Tests (8)
System\Windows\Forms\ControlTests.Methods.cs (3)
4391yield return new object[] { Keys.Return, false }; 4421yield return new object[] { Keys.Control | Keys.Return, false }; 4451yield return new object[] { Keys.Alt | Keys.Return, false };
System\Windows\Forms\TabControlTests.cs (3)
3993yield return new object[] { Keys.Return, false }; 4018yield return new object[] { Keys.Control | Keys.Return, false }; 4047yield return new object[] { Keys.Alt | Keys.Return, false };
System\Windows\Forms\UpDownBaseTests.cs (2)
2371yield return new object[] { interceptArrowKeys, true, source, new KeyEventArgs(Keys.Return), 0, 0, 1, false }; 2372yield return new object[] { interceptArrowKeys, false, source, new KeyEventArgs(Keys.Return), 0, 0, 0, false };