79 references to Enter
System.Windows.Forms (16)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1163
if (kevent.KeyCode is Keys.
Enter
or Keys.Space)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
10128
case Keys.
Enter
:
15695
case Keys.
Enter
:
20047
if (key == Keys.
Enter
)
21948
or Keys.
Enter
24490
case Keys.
Enter
:
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
96
maskedKeyData == Keys.
Enter
)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (2)
203
case Keys.
Enter
:
258
case Keys.
Enter
:
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
797
if (e.KeyCode == Keys.
Enter
)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (2)
573
if (isTopLevel && (keyCode == Keys.Down || keyCode == Keys.Up || keyCode == Keys.
Enter
|| (SupportsSpaceKey && keyCode == Keys.Space)))
589
bool forward = ((keyCode == Keys.
Enter
) || (SupportsSpaceKey && keyCode == Keys.Space));
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3051
if (keyData == Keys.
Enter
|| (_state[s_stateSupportsSpaceKey] && keyData == Keys.Space))
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
368
if (Enabled && (keyData == Keys.
Enter
|| (SupportsSpaceKey && keyData == Keys.Space)))
System\Windows\Forms\DataBinding\BindingNavigator.cs (1)
747
case Keys.
Enter
:
System\Windows\Forms\Printing\PrintPreviewDialog.PrintPreviewDialogToolStripButton.cs (1)
15
if (keyData == Keys.
Enter
|| (SupportsSpaceKey && keyData == Keys.Space))
System.Windows.Forms.Design (9)
System\ComponentModel\Design\DateTimeEditor.DateTimeUI.cs (2)
48
case Keys.
Enter
:
90
Keys.
Enter
=> true,
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
200
if (e.KeyData == Keys.
Enter
)
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
263
if (e.KeyCode == Keys.
Enter
)
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (1)
259
if (keyData == Keys.
Enter
)
System\Drawing\Design\ColorEditor.ColorPalette.cs (2)
230
Keys.Left or Keys.Right or Keys.Up or Keys.Down or Keys.
Enter
=> true,
275
case Keys.
Enter
:
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
775
case Keys.
Enter
:
System\Windows\Forms\Design\FormatStringDialog.cs (1)
244
case Keys.
Enter
:
System.Windows.Forms.Tests (52)
System\Windows\Forms\ButtonBaseTests.cs (23)
5484
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Enter
), false, false };
5529
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Enter
), false };
5575
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Enter
), false, 0 };
5633
yield 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)]
5749
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Enter
) };
5798
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Enter
), 1, expectedIsHandleCreated };
5903
yield 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)
1036
yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.
Enter
, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1037
yield return new object[] { RightToLeft.No, valueChanged, multiline, acceptsReturn, Keys.
Enter
, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1038
yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.
Enter
| Keys.Shift | Keys.Control, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1039
yield return new object[] { RightToLeft.No, valueChanged, multiline, acceptsReturn, Keys.
Enter
| Keys.Shift | Keys.Control, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1040
yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.
Enter
| Keys.Shift, dataGridViewWantsInputKey, !dataGridViewWantsInputKey || (multiline && acceptsReturn) };
1041
yield return new object[] { RightToLeft.No, valueChanged, multiline, acceptsReturn, Keys.
Enter
| Keys.Shift, dataGridViewWantsInputKey, !dataGridViewWantsInputKey || (multiline && acceptsReturn) };
1516
foreach (IntPtr wParam in new IntPtr[] { (IntPtr)Keys.
Enter
, (IntPtr)Keys.LineFeed, (IntPtr)Keys.A, 2 })
1518
if (wParam != (IntPtr)Keys.
Enter
)
1535
yield return new object[] { (int)PInvokeCore.WM_CHAR, (IntPtr)Keys.
Enter
, '2', handled, true, 0, 0, 0, (IntPtr)Keys.
Enter
};
1536
yield 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)
147
Keys.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)
4679
KeyboardSimulator.KeyPress(control, Keys.
Enter
);
System\Windows\Forms\ToolStripButtonTests.cs (6)
1531
Assert.True(item.ProcessDialogKey(Keys.
Enter
));
1558
Assert.True(item.ProcessDialogKey(Keys.
Enter
));
1585
Assert.True(item.ProcessDialogKey(Keys.
Enter
));
1610
Assert.True(item.ProcessDialogKey(Keys.
Enter
));
1637
Assert.True(item.ProcessDialogKey(Keys.
Enter
));
1664
Assert.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)
10377
[InlineData(Keys.
Enter
)]
13966
[InlineData(Keys.
Enter
)]
13996
Assert.True(item.ProcessDialogKey(Keys.
Enter
));
14023
Assert.True(item.ProcessDialogKey(Keys.
Enter
));
14050
Assert.True(item.ProcessDialogKey(Keys.
Enter
));
System.Windows.Forms.UI.IntegrationTests (2)
MenuStripTests.cs (2)
27
toolStripMenuItem1.ProcessCmdKey(ref message, keyData: Keys.
Enter
);
32
toolStripMenuItem3.ProcessCmdKey(ref message, keyData: Keys.
Enter
);