79 references to Enter
System.Windows.Forms (16)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1163if (kevent.KeyCode is Keys.Enter or Keys.Space)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
10128case Keys.Enter: 15695case Keys.Enter: 20047if (key == Keys.Enter) 21948or Keys.Enter 24490case Keys.Enter:
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
96maskedKeyData == Keys.Enter)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (2)
203case Keys.Enter: 258case Keys.Enter:
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
797if (e.KeyCode == Keys.Enter)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (2)
573if (isTopLevel && (keyCode == Keys.Down || keyCode == Keys.Up || keyCode == Keys.Enter || (SupportsSpaceKey && keyCode == Keys.Space))) 589bool forward = ((keyCode == Keys.Enter) || (SupportsSpaceKey && keyCode == Keys.Space));
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3051if (keyData == Keys.Enter || (_state[s_stateSupportsSpaceKey] && keyData == Keys.Space))
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
368if (Enabled && (keyData == Keys.Enter || (SupportsSpaceKey && keyData == Keys.Space)))
System\Windows\Forms\DataBinding\BindingNavigator.cs (1)
747case Keys.Enter:
System\Windows\Forms\Printing\PrintPreviewDialog.PrintPreviewDialogToolStripButton.cs (1)
15if (keyData == Keys.Enter || (SupportsSpaceKey && keyData == Keys.Space))
System.Windows.Forms.Design (9)
System\ComponentModel\Design\DateTimeEditor.DateTimeUI.cs (2)
48case Keys.Enter: 90Keys.Enter => true,
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
200if (e.KeyData == Keys.Enter)
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
263if (e.KeyCode == Keys.Enter)
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (1)
259if (keyData == Keys.Enter)
System\Drawing\Design\ColorEditor.ColorPalette.cs (2)
230Keys.Left or Keys.Right or Keys.Up or Keys.Down or Keys.Enter => true, 275case Keys.Enter:
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
775case Keys.Enter:
System\Windows\Forms\Design\FormatStringDialog.cs (1)
244case Keys.Enter:
System.Windows.Forms.Tests (52)
System\Windows\Forms\ButtonBaseTests.cs (23)
5484yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Enter), false, false }; 5529yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Enter), false }; 5575yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Enter), false, 0 }; 5633yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Enter), false }; 5687[InlineData(FlatStyle.Flat, Keys.Enter, 0)] 5690[InlineData(FlatStyle.Popup, Keys.Enter, 0)] 5693[InlineData(FlatStyle.Standard, Keys.Enter, 0)] 5696[InlineData(FlatStyle.System, Keys.Enter, 0)] 5711[InlineData(FlatStyle.Flat, Keys.Enter, 0)] 5714[InlineData(FlatStyle.Popup, Keys.Enter, 0)] 5717[InlineData(FlatStyle.Standard, Keys.Enter, 0)] 5720[InlineData(FlatStyle.System, Keys.Enter, 0)] 5749yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Enter) }; 5798yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Enter), 1, expectedIsHandleCreated }; 5903yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Enter), 1, expectedCallCount }; 5966[InlineData(FlatStyle.Flat, Keys.Enter, 0)] 5969[InlineData(FlatStyle.Popup, Keys.Enter, 0)] 5972[InlineData(FlatStyle.Standard, Keys.Enter, 0)] 5975[InlineData(FlatStyle.System, Keys.Enter, 0)] 5990[InlineData(FlatStyle.Flat, Keys.Enter, 0)] 5993[InlineData(FlatStyle.Popup, Keys.Enter, 0)] 5996[InlineData(FlatStyle.Standard, Keys.Enter, 0)] 5999[InlineData(FlatStyle.System, Keys.Enter, 0)]
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (12)
1036yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Enter, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1037yield return new object[] { RightToLeft.No, valueChanged, multiline, acceptsReturn, Keys.Enter, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1038yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Enter | Keys.Shift | Keys.Control, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1039yield return new object[] { RightToLeft.No, valueChanged, multiline, acceptsReturn, Keys.Enter | Keys.Shift | Keys.Control, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1040yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Enter | Keys.Shift, dataGridViewWantsInputKey, !dataGridViewWantsInputKey || (multiline && acceptsReturn) }; 1041yield return new object[] { RightToLeft.No, valueChanged, multiline, acceptsReturn, Keys.Enter | Keys.Shift, dataGridViewWantsInputKey, !dataGridViewWantsInputKey || (multiline && acceptsReturn) }; 1516foreach (IntPtr wParam in new IntPtr[] { (IntPtr)Keys.Enter, (IntPtr)Keys.LineFeed, (IntPtr)Keys.A, 2 }) 1518if (wParam != (IntPtr)Keys.Enter) 1535yield return new object[] { (int)PInvokeCore.WM_CHAR, (IntPtr)Keys.Enter, '2', handled, true, 0, 0, 0, (IntPtr)Keys.Enter }; 1536yield return new object[] { (int)PInvokeCore.WM_CHAR, (IntPtr)Keys.Enter, '1', handled, true, 0, 0, 0, (IntPtr)Keys.Enter };
System\Windows\Forms\KeysConverterTests.cs (1)
147Keys.Delete, Keys.End, Keys.Enter, Keys.F1, Keys.F10, Keys.F11, Keys.F12, Keys.F2, Keys.F3, Keys.F4, Keys.F5, Keys.F6, Keys.F7, Keys.F8,
System\Windows\Forms\ListViewTests.cs (1)
4679KeyboardSimulator.KeyPress(control, Keys.Enter);
System\Windows\Forms\ToolStripButtonTests.cs (6)
1531Assert.True(item.ProcessDialogKey(Keys.Enter)); 1558Assert.True(item.ProcessDialogKey(Keys.Enter)); 1585Assert.True(item.ProcessDialogKey(Keys.Enter)); 1610Assert.True(item.ProcessDialogKey(Keys.Enter)); 1637Assert.True(item.ProcessDialogKey(Keys.Enter)); 1664Assert.True(item.ProcessDialogKey(Keys.Enter));
System\Windows\Forms\ToolStripControlHostTests.cs (4)
4194[InlineData(Keys.Enter)] 4235[InlineData(Keys.Enter)] 4251[InlineData(Keys.Enter)] 4295[InlineData(Keys.Enter)]
System\Windows\Forms\ToolStripItemTests.cs (5)
10358[InlineData(Keys.Enter)] 13947[InlineData(Keys.Enter)] 13977Assert.True(item.ProcessDialogKey(Keys.Enter)); 14004Assert.True(item.ProcessDialogKey(Keys.Enter)); 14031Assert.True(item.ProcessDialogKey(Keys.Enter));
System.Windows.Forms.UI.IntegrationTests (2)
MenuStripTests.cs (2)
27toolStripMenuItem1.ProcessCmdKey(ref message, keyData: Keys.Enter); 32toolStripMenuItem3.ProcessCmdKey(ref message, keyData: Keys.Enter);