81 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)
10126
case Keys.
Enter
:
15709
case Keys.
Enter
:
20064
if (key == Keys.
Enter
)
21960
or Keys.
Enter
24507
case Keys.
Enter
:
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
95
maskedKeyData == Keys.
Enter
)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (2)
201
case Keys.
Enter
:
256
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)
3045
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)
768
case Keys.
Enter
:
System\Windows\Forms\Design\FormatStringDialog.cs (1)
244
case Keys.
Enter
:
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\DesignerFrameTests.cs (2)
90
bool result = designerFrame.ProcessDialogKey(Keys.
Enter
);
160
bool result = designerFrame.ProcessDialogKey(Keys.
Enter
);
System.Windows.Forms.Tests (52)
System\Windows\Forms\ButtonBaseTests.cs (23)
5486
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Enter
), false, false };
5531
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Enter
), false };
5577
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Enter
), false, 0 };
5635
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Enter
), false };
5689
[InlineData(FlatStyle.Flat, Keys.
Enter
, 0)]
5692
[InlineData(FlatStyle.Popup, Keys.
Enter
, 0)]
5695
[InlineData(FlatStyle.Standard, Keys.
Enter
, 0)]
5698
[InlineData(FlatStyle.System, Keys.
Enter
, 0)]
5713
[InlineData(FlatStyle.Flat, Keys.
Enter
, 0)]
5716
[InlineData(FlatStyle.Popup, Keys.
Enter
, 0)]
5719
[InlineData(FlatStyle.Standard, Keys.
Enter
, 0)]
5722
[InlineData(FlatStyle.System, Keys.
Enter
, 0)]
5751
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Enter
) };
5800
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Enter
), 1, expectedIsHandleCreated };
5905
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Enter
), 1, expectedCallCount };
5968
[InlineData(FlatStyle.Flat, Keys.
Enter
, 0)]
5971
[InlineData(FlatStyle.Popup, Keys.
Enter
, 0)]
5974
[InlineData(FlatStyle.Standard, Keys.
Enter
, 0)]
5977
[InlineData(FlatStyle.System, Keys.
Enter
, 0)]
5992
[InlineData(FlatStyle.Flat, Keys.
Enter
, 0)]
5995
[InlineData(FlatStyle.Popup, Keys.
Enter
, 0)]
5998
[InlineData(FlatStyle.Standard, Keys.
Enter
, 0)]
6001
[InlineData(FlatStyle.System, Keys.
Enter
, 0)]
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (12)
1038
yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.
Enter
, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1039
yield return new object[] { RightToLeft.No, valueChanged, multiline, acceptsReturn, Keys.
Enter
, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1040
yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.
Enter
| Keys.Shift | Keys.Control, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1041
yield return new object[] { RightToLeft.No, valueChanged, multiline, acceptsReturn, Keys.
Enter
| Keys.Shift | Keys.Control, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1042
yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.
Enter
| Keys.Shift, dataGridViewWantsInputKey, !dataGridViewWantsInputKey || (multiline && acceptsReturn) };
1043
yield return new object[] { RightToLeft.No, valueChanged, multiline, acceptsReturn, Keys.
Enter
| Keys.Shift, dataGridViewWantsInputKey, !dataGridViewWantsInputKey || (multiline && acceptsReturn) };
1518
foreach (IntPtr wParam in new IntPtr[] { (IntPtr)Keys.
Enter
, (IntPtr)Keys.LineFeed, (IntPtr)Keys.A, 2 })
1520
if (wParam != (IntPtr)Keys.
Enter
)
1537
yield return new object[] { (int)PInvokeCore.WM_CHAR, (IntPtr)Keys.
Enter
, '2', handled, true, 0, 0, 0, (IntPtr)Keys.
Enter
};
1538
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)
106
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)
4681
KeyboardSimulator.KeyPress(control, Keys.
Enter
);
System\Windows\Forms\ToolStripButtonTests.cs (6)
1533
Assert.True(item.ProcessDialogKey(Keys.
Enter
));
1560
Assert.True(item.ProcessDialogKey(Keys.
Enter
));
1587
Assert.True(item.ProcessDialogKey(Keys.
Enter
));
1612
Assert.True(item.ProcessDialogKey(Keys.
Enter
));
1639
Assert.True(item.ProcessDialogKey(Keys.
Enter
));
1666
Assert.True(item.ProcessDialogKey(Keys.
Enter
));
System\Windows\Forms\ToolStripControlHostTests.cs (4)
4196
[InlineData(Keys.
Enter
)]
4237
[InlineData(Keys.
Enter
)]
4253
[InlineData(Keys.
Enter
)]
4297
[InlineData(Keys.
Enter
)]
System\Windows\Forms\ToolStripItemTests.cs (5)
10360
[InlineData(Keys.
Enter
)]
13949
[InlineData(Keys.
Enter
)]
13979
Assert.True(item.ProcessDialogKey(Keys.
Enter
));
14006
Assert.True(item.ProcessDialogKey(Keys.
Enter
));
14033
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
);