107 references to KeyCode
System.Windows.Forms (64)
winforms\Managed\System\WinForms\BindingNavigator.cs (1)
703
switch (e.
KeyCode
) {
winforms\Managed\System\WinForms\ButtonBase.cs (2)
1111
if (kevent.
KeyCode
== Keys.Enter || kevent.
KeyCode
== Keys.Space) {
winforms\Managed\System\WinForms\ComboBox.cs (2)
2579
if (e.
KeyCode
== Keys.Return) {
2583
else if ((e.
KeyCode
== Keys.Escape) && autoCompleteDroppedDown) {
winforms\Managed\System\WinForms\DataGrid.cs (5)
7658
Debug.WriteLineIf(CompModSwitches.DataGridKeys.TraceVerbose, "DataGridKeys: ProcessGridKey "+ TypeDescriptor.GetConverter(typeof(Keys)).ConvertToString(ke.
KeyCode
));
7668
switch(ke.
KeyCode
) {
7697
switch (biDiKe.
KeyCode
) {
8212
switch (ke.
KeyCode
) {
8238
if (ke.
KeyCode
== Keys.Tab)
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (4)
473
return e.
KeyCode
== Keys.Space && !e.Alt && !e.Control && !e.Shift;
479
return e.
KeyCode
== Keys.Space;
513
if (e.
KeyCode
== Keys.Space && !e.Alt && !e.Control && !e.Shift)
527
if (e.
KeyCode
== Keys.Space)
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (4)
868
return e.
KeyCode
== Keys.Space && !e.Alt && !e.Control && !e.Shift;
874
return e.
KeyCode
== Keys.Space;
944
if (e.
KeyCode
== Keys.Space && !e.Alt && !e.Control && !e.Shift)
958
if (e.
KeyCode
== Keys.Space)
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (13)
1758
if (((char.IsLetterOrDigit((char)e.
KeyCode
) && !(e.
KeyCode
>= Keys.F1 && e.
KeyCode
<= Keys.F24)) ||
1759
(e.
KeyCode
>= Keys.NumPad0 && e.
KeyCode
<= Keys.Divide) ||
1760
(e.
KeyCode
>= Keys.OemSemicolon && e.
KeyCode
<= Keys.Oem102) ||
1761
(e.
KeyCode
== Keys.Space && !e.Shift) ||
1762
(e.
KeyCode
== Keys.F4) ||
1763
((e.
KeyCode
== Keys.Down || e.
KeyCode
== Keys.Up) && e.Alt)) &&
1764
(!e.Alt || (e.
KeyCode
== Keys.Down || e.
KeyCode
== Keys.Up)) &&
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (2)
779
if (e.
KeyCode
== Keys.Space && !e.Alt && !e.Control && !e.Shift)
834
if (e.
KeyCode
== Keys.Space && !e.Alt && !e.Control && !e.Shift)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (5)
22319
if (ke.
KeyCode
!= Keys.ProcessKey || (int) m.LParam != 0x01) // Changing IME context does not trigger editing mode
22335
if (BeginEditInternal(!(ke.
KeyCode
== Keys.F2 && ModifierKeys == 0 && this.EditMode == DataGridViewEditMode.EditOnKeystrokeOrF2) /*selectAll*/))
22380
switch (ke.
KeyCode
)
22394
switch (ke.
KeyCode
)
24656
switch (e.
KeyCode
)
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (8)
560
if (((char.IsLetterOrDigit((char)e.
KeyCode
) && !(e.
KeyCode
>= Keys.F1 && e.
KeyCode
<= Keys.F24)) ||
561
(e.
KeyCode
>= Keys.NumPad0 && e.
KeyCode
<= Keys.Divide) ||
562
(e.
KeyCode
>= Keys.OemSemicolon && e.
KeyCode
<= Keys.Oem102) ||
563
(e.
KeyCode
== Keys.Space && !e.Shift)) &&
winforms\Managed\System\WinForms\LinkLabel.cs (1)
953
if (e.
KeyCode
== Keys.Enter) {
winforms\Managed\System\WinForms\MaskedTextBox.cs (1)
2055
Keys keyCode = e.
KeyCode
;
winforms\Managed\System\WinForms\NumericUpDown.cs (4)
494
if (base.InterceptArrowKeys && (e.
KeyCode
== Keys.Up || e.
KeyCode
== Keys.Down) && !this.Spinning) {
505
if (base.InterceptArrowKeys && (e.
KeyCode
== Keys.Up || e.
KeyCode
== Keys.Down)) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (7)
2574
if (ke.
KeyCode
== Keys.Return) {
2719
if (!fAlt && (ke.
KeyCode
== Keys.Up || ke.
KeyCode
== Keys.Down)) {
2726
bool processed = ProcessEnumUpAndDown(gridEntry, ke.
KeyCode
);
2732
else if ((ke.
KeyCode
== Keys.Left || ke.
KeyCode
== Keys.Right) &&
2913
Keys keyCode = ke.
KeyCode
;
winforms\Managed\System\WinForms\Splitter.cs (1)
868
if (splitTarget != null && e.
KeyCode
== Keys.Escape) {
winforms\Managed\System\WinForms\TabControl.cs (3)
1477
if (ke.
KeyCode
== Keys.Tab && (ke.KeyData & Keys.Control) !=0) {
1481
if (ke.
KeyCode
== Keys.PageDown && (ke.KeyData & Keys.Control) !=0) {
1484
if (ke.
KeyCode
== Keys.PageUp && (ke.KeyData & Keys.Control) !=0) {
winforms\Managed\System\WinForms\UpDownBase.cs (1)
884
if (e.
KeyCode
== Keys.Return && UserEdit) {
System.Workflow.Activities (9)
Rules\Design\Dialogs\IntellisenseTextBox.cs (9)
153
System.Diagnostics.Trace.WriteLine(string.Format(CultureInfo.CurrentCulture, "KeyCode:{0}, KeyData:{1}, KeyValue:{2}", e.
KeyCode
, e.KeyData, e.KeyValue));
166
else if (e.
KeyCode
== Keys.Back)
186
else if (e.
KeyCode
== Keys.Up)
199
else if (e.
KeyCode
== Keys.Down)
219
else if (e.
KeyCode
== Keys.ShiftKey
220
|| e.
KeyCode
== Keys.ControlKey
221
|| e.
KeyCode
== Keys.OemPeriod)
230
if (e.
KeyCode
== Keys.Return || e.
KeyCode
== Keys.Space)
System.Workflow.ComponentModel (33)
AuthoringOM\Design\CompositeActivityDesigner.cs (6)
1359
if (e.
KeyCode
== Keys.Down ||
1360
(e.
KeyCode
== Keys.Tab && !e.Shift))
1387
else if (e.
KeyCode
== Keys.Up ||
1388
(e.
KeyCode
== Keys.Tab && e.Shift))
1420
else if (e.
KeyCode
== Keys.Left)
1435
else if (e.
KeyCode
== Keys.Right)
AuthoringOM\Design\DesignerWidgets.cs (6)
1128
if (e.
KeyCode
== Keys.Enter)
1142
else if (e.
KeyCode
== Keys.Escape)
1146
else if (e.
KeyCode
== Keys.Up || e.
KeyCode
== Keys.Down)
1156
if (e.
KeyCode
== Keys.Up)
1158
else if (e.
KeyCode
== Keys.Down)
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
961
if (e.
KeyCode
== Keys.F2 && base.TreeView.SelectedNode != null)
AuthoringOM\Design\FreeFormDesigner.cs (9)
967
if (e.
KeyCode
== Keys.Left || e.
KeyCode
== Keys.Right || e.
KeyCode
== Keys.Up || e.
KeyCode
== Keys.Down)
972
if (e.
KeyCode
== Keys.Left)
974
else if (e.
KeyCode
== Keys.Right)
976
else if (e.
KeyCode
== Keys.Up)
978
else if (e.
KeyCode
== Keys.Down)
999
else if (e.
KeyCode
== Keys.Delete)
AuthoringOM\Design\MessageFilters\WindowManager.cs (11)
224
if (eventArgs != null && (eventArgs.
KeyCode
== Keys.PageUp || eventArgs.
KeyCode
== Keys.PageDown))
225
UpdateViewOnPageUpDown(eventArgs.
KeyCode
== Keys.PageUp);
229
if (eventArgs.
KeyCode
== Keys.Enter)
239
else if (eventArgs.
KeyCode
== Keys.Escape)
250
else if (eventArgs.
KeyCode
== Keys.Delete)
295
else if (eventArgs.
KeyCode
== Keys.Left || eventArgs.
KeyCode
== Keys.Right || eventArgs.
KeyCode
== Keys.Up || eventArgs.
KeyCode
== Keys.Down || eventArgs.
KeyCode
== Keys.Tab)
System.WorkflowServices (1)
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (1)
399
if (e.
KeyCode
== Keys.Delete && this.RemoveParameterButton.Enabled)