1 write to KeyData
System.Windows.Forms (1)
System\Windows\Forms\Input\KeyEventArgs.cs (1)
19KeyData = keyData;
58 references to KeyData
System.Windows.Forms (53)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1120if (kevent.KeyData == Keys.Space)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (22)
15700switch (e.KeyData & Keys.KeyCode) 15767if (_dataGridViewOper[OperationTrackKeyboardColResize] && (e.KeyData & Keys.Alt) != Keys.Alt) 21981((IDataGridViewEditingControl)EditingControl).EditingControlWantsInputKey(ke.KeyData, dataGridViewWantsInputKey); 24436return ProcessTabKey(e.KeyData); 24441return ProcessUpKey(e.KeyData); 24446return ProcessDownKey(e.KeyData); 24451return ProcessNextKey(e.KeyData); 24456return ProcessPriorKey(e.KeyData); 24461return ProcessLeftKey(e.KeyData); 24466return ProcessRightKey(e.KeyData); 24471return ProcessF2Key(e.KeyData); 24476return ProcessF3Key(e.KeyData); 24483return ProcessControlShiftF10Keys(e.KeyData); 24491return ProcessHomeKey(e.KeyData); 24497return ProcessZeroKey(e.KeyData); 24502return ProcessDeleteKey(e.KeyData); 24507return ProcessEndKey(e.KeyData); 24512return ProcessEnterKey(e.KeyData); 24517return ProcessEscapeKey(e.KeyData); 24522return ProcessAKey(e.KeyData); 24528return ProcessInsertKey(e.KeyData); 24533return ProcessSpaceKey(e.KeyData);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
2701if (ProcessDialogKey(e.KeyData)) 2914if (e.KeyData == (Keys.C | Keys.Alt | Keys.Shift | Keys.Control))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
144if (ProcessDialogKey(e.KeyData))
System\Windows\Forms\Controls\TabControl\TabControl.cs (4)
1376if (ke.KeyCode == Keys.Tab && (ke.KeyData & Keys.Control) != 0) 1378bool forward = (ke.KeyData & Keys.Shift) == 0; 1382if (ke.KeyCode == Keys.PageDown && (ke.KeyData & Keys.Control) != 0) 1387if (ke.KeyCode == Keys.PageUp && (ke.KeyData & Keys.Control) != 0)
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
2257if (CheckBoxes && (e.KeyData & Keys.KeyCode) == Keys.Space) 2287if ((e.KeyData & Keys.KeyCode) == Keys.Space)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (2)
598if (e.KeyData == Keys.Up) 605else if (e.KeyData == Keys.Down)
System\Windows\Forms\Input\KeyEventArgs.cs (6)
25public virtual bool Alt => (KeyData & Keys.Alt) == Keys.Alt; 30public bool Control => (KeyData & Keys.Control) == Keys.Control; 45Keys keyGenerated = KeyData & Keys.KeyCode; 61public int KeyValue => (int)(KeyData & Keys.KeyCode); 74public Keys Modifiers => KeyData & Keys.Modifiers; 79public virtual bool Shift => (KeyData & Keys.Shift) == Keys.Shift;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (13)
935if (e.KeyData == Keys.Escape && _splitBegin) 944&& (e.KeyData == Keys.Right || e.KeyData == Keys.Down || e.KeyData == Keys.Left || e.KeyData == Keys.Up)) 952if (_splitterFocused && (e.KeyData == Keys.Left || e.KeyData == Keys.Up)) 959if (_splitterFocused && (e.KeyData == Keys.Right || e.KeyData == Keys.Down)) 1011&& (e.KeyData == Keys.Right || e.KeyData == Keys.Down || e.KeyData == Keys.Left || e.KeyData == Keys.Up))
System.Windows.Forms.Design (4)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
634switch (e.KeyData)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
200if (e.KeyData == Keys.Enter)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
2092if (e.KeyData == Keys.Return && SelectedNode is not null)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1109if (e.KeyCode == Keys.A && (e.KeyData & Keys.Control) != 0)
System.Windows.Forms.Tests (1)
System\Windows\Forms\KeyEventArgsTests.cs (1)
25Assert.Equal(keyData, e.KeyData);