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)
15683switch (e.KeyData & Keys.KeyCode) 15749if (_dataGridViewOper[OperationTrackKeyboardColResize] && (e.KeyData & Keys.Alt) != Keys.Alt) 21966((IDataGridViewEditingControl)EditingControl).EditingControlWantsInputKey(ke.KeyData, dataGridViewWantsInputKey); 24416return ProcessTabKey(e.KeyData); 24421return ProcessUpKey(e.KeyData); 24426return ProcessDownKey(e.KeyData); 24431return ProcessNextKey(e.KeyData); 24436return ProcessPriorKey(e.KeyData); 24441return ProcessLeftKey(e.KeyData); 24446return ProcessRightKey(e.KeyData); 24451return ProcessF2Key(e.KeyData); 24456return ProcessF3Key(e.KeyData); 24463return ProcessControlShiftF10Keys(e.KeyData); 24471return ProcessHomeKey(e.KeyData); 24477return ProcessZeroKey(e.KeyData); 24482return ProcessDeleteKey(e.KeyData); 24487return ProcessEndKey(e.KeyData); 24492return ProcessEnterKey(e.KeyData); 24497return ProcessEscapeKey(e.KeyData); 24502return ProcessAKey(e.KeyData); 24508return ProcessInsertKey(e.KeyData); 24513return ProcessSpaceKey(e.KeyData);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
2700if (ProcessDialogKey(e.KeyData)) 2913if (e.KeyData == (Keys.C | Keys.Alt | Keys.Shift | Keys.Control))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
141if (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)
2090if (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);