75 instantiations of KeyEventArgs
System.Windows.Forms.Tests (73)
KeyboardTooltipStateMachineTests.cs (1)
112public void SimulateKeyUp(Keys keys) => base.OnKeyUp(new KeyEventArgs(keys));
System\Windows\Forms\ButtonBaseTests.cs (26)
5483yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Cancel), false, false }; 5484yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Enter), false, false }; 5485yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Space), true, expectedIsHandleCreated }; 5528yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Cancel), false }; 5529yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Enter), false }; 5530yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Space), true }; 5574yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Cancel), false, 0 }; 5575yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Enter), false, 0 }; 5576yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Space), true, 1 }; 5632yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Cancel), false }; 5633yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Enter), false }; 5634yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Space), true }; 5705control.OnKeyDown(new KeyEventArgs(key)); 5730control.OnKeyDown(new KeyEventArgs(key)); 5747yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.None) }; 5748yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Cancel) }; 5749yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Enter) }; 5750yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Space) }; 5797yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Cancel), 0, expectedIsHandleCreated }; 5798yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Enter), 1, expectedIsHandleCreated }; 5799yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Space), 1, expectedIsHandleCreated }; 5902yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Cancel), 0, expectedCallCount }; 5903yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Enter), 1, expectedCallCount }; 5904yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Space), 1, expectedCallCount }; 5984control.OnKeyUp(new KeyEventArgs(key)); 6009control.OnKeyUp(new KeyEventArgs(key));
System\Windows\Forms\ComboBoxTests.cs (1)
2774public void OnKeyUp() => base.OnKeyUp(new KeyEventArgs(Keys.Left));
System\Windows\Forms\DataGridViewCellTests.cs (2)
6491cell.OnKeyClick(new KeyEventArgs(Keys.Space), 0); 6499cell.OnKeyClick(new KeyEventArgs(Keys.Space), 0);
System\Windows\Forms\KeyEventArgsTests.cs (3)
24KeyEventArgs e = new(keyData); 49KeyEventArgs e = new(Keys.A) 63KeyEventArgs e = new(Keys.A)
System\Windows\Forms\LabelTests.cs (2)
749KeyEventArgs keyEventArgs = new KeyEventArgs(Keys.A); 771KeyEventArgs keyEventArgs = new KeyEventArgs(Keys.A);
System\Windows\Forms\SplitterTests.cs (3)
1820yield return new object[] { new KeyEventArgs(Keys.None) }; 1821yield return new object[] { new KeyEventArgs(Keys.Cancel) }; 1822yield return new object[] { new KeyEventArgs(Keys.Escape) };
System\Windows\Forms\ToolStripControlHostTests.cs (2)
4065c.OnKeyDown(new KeyEventArgs(Keys.A)); 4071c.OnKeyUp(new KeyEventArgs(Keys.A));
System\Windows\Forms\TreeViewTests.cs (21)
5730yield return new object[] { new KeyEventArgs(Keys.None) }; 5731yield return new object[] { new KeyEventArgs(Keys.A) }; 5732yield return new object[] { new KeyEventArgs(Keys.Space) }; 5733yield return new object[] { new KeyEventArgs(Keys.Control | Keys.Space) }; 5762yield return new object[] { false, true, false, new KeyEventArgs(Keys.None), 0, 0, false }; 5763yield return new object[] { false, true, false, new KeyEventArgs(Keys.A), 0, 0, false }; 5764yield return new object[] { false, true, false, new KeyEventArgs(Keys.Space), 1, 1, true }; 5765yield return new object[] { false, true, true, new KeyEventArgs(Keys.Space), 1, 0, true }; 5766yield return new object[] { false, true, false, new KeyEventArgs(Keys.Control | Keys.Space), 1, 1, true }; 5767yield return new object[] { false, true, true, new KeyEventArgs(Keys.Control | Keys.Space), 1, 0, true }; 5769yield return new object[] { true, true, false, new KeyEventArgs(Keys.Space), 0, 0, true }; 5770yield return new object[] { true, false, false, new KeyEventArgs(Keys.Space), 0, 0, true }; 5771yield return new object[] { false, false, false, new KeyEventArgs(Keys.Space), 0, 0, false }; 5895yield return new object[] { true, new KeyEventArgs(Keys.None), true }; 5896yield return new object[] { true, new KeyEventArgs(Keys.A), true }; 5897yield return new object[] { true, new KeyEventArgs(Keys.Space), true }; 5898yield return new object[] { true, new KeyEventArgs(Keys.Control | Keys.Space), true }; 5900yield return new object[] { false, new KeyEventArgs(Keys.None), false }; 5901yield return new object[] { false, new KeyEventArgs(Keys.A), false }; 5902yield return new object[] { false, new KeyEventArgs(Keys.Space), true }; 5903yield return new object[] { false, new KeyEventArgs(Keys.Control | Keys.Space), true };
System\Windows\Forms\UpDownBaseTests.cs (12)
2357yield return new object[] { true, userEdit, source, new KeyEventArgs(Keys.A), 0, 0, 0, false }; 2358yield return new object[] { false, userEdit, source, new KeyEventArgs(Keys.A), 0, 0, 0, false }; 2359yield return new object[] { true, userEdit, source, new KeyEventArgs(Keys.Up), 1, 0, 0, true }; 2360yield return new object[] { false, userEdit, source, new KeyEventArgs(Keys.Up), 0, 0, 0, false }; 2361yield return new object[] { true, userEdit, source, new KeyEventArgs(Keys.Down), 0, 1, 0, true }; 2362yield return new object[] { false, userEdit, source, new KeyEventArgs(Keys.Down), 0, 0, 0, false }; 2363yield return new object[] { true, userEdit, source, new KeyEventArgs(Keys.Left), 0, 0, 0, false }; 2364yield return new object[] { false, userEdit, source, new KeyEventArgs(Keys.Left), 0, 0, 0, false }; 2365yield return new object[] { true, userEdit, source, new KeyEventArgs(Keys.Right), 0, 0, 0, false }; 2366yield return new object[] { false, userEdit, source, new KeyEventArgs(Keys.Right), 0, 0, 0, false }; 2371yield return new object[] { interceptArrowKeys, true, source, new KeyEventArgs(Keys.Return), 0, 0, 1, false }; 2372yield return new object[] { interceptArrowKeys, false, source, new KeyEventArgs(Keys.Return), 0, 0, 0, false };
System.Windows.Forms.TestUtilities (2)
CommonTestHelperEx.cs (2)
124new(Keys.None), 125new(Keys.Cancel)
170 references to KeyEventArgs
System.Windows.Forms (65)
System\Windows\Forms\Control.cs (6)
5071protected void RaiseKeyEvent(object key, KeyEventArgs e) 7636protected virtual void OnKeyDown(KeyEventArgs e) 7654protected virtual void OnKeyUp(KeyEventArgs e) 8837/// <see cref="OnKeyDown(KeyEventArgs)"/>, or <see cref="OnKeyUp(KeyEventArgs)"/>. The <paramref name="m"/> 8844KeyEventArgs? ke = null;
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
1118protected override void OnKeyDown(KeyEventArgs kevent) 1146protected override void OnKeyUp(KeyEventArgs kevent)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
2436protected override void OnKeyDown(KeyEventArgs e) 2487protected override void OnKeyUp(KeyEventArgs e)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
15673protected override void OnKeyDown(KeyEventArgs e) 15759protected override void OnKeyUp(KeyEventArgs e) 21897KeyEventArgs ke = new((Keys)(nint)m.WParamInternal | ModifierKeys); 21945KeyEventArgs ke = new((Keys)(nint)m.WParamInternal | ModifierKeys); 24430protected virtual bool ProcessDataGridViewKey(KeyEventArgs e)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (4)
439protected override bool KeyDownUnsharesRow(KeyEventArgs e, int rowIndex) => 442protected override bool KeyUpUnsharesRow(KeyEventArgs e, int rowIndex) => 457protected override void OnKeyDown(KeyEventArgs e, int rowIndex) 471protected override void OnKeyUp(KeyEventArgs e, int rowIndex)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (9)
2496protected virtual bool KeyDownUnsharesRow(KeyEventArgs e, int rowIndex) => false; 2498internal bool KeyDownUnsharesRowInternal(KeyEventArgs e, int rowIndex) => 2501public virtual bool KeyEntersEditMode(KeyEventArgs e) => false; 2508protected virtual bool KeyUpUnsharesRow(KeyEventArgs e, int rowIndex) => false; 2510internal bool KeyUpUnsharesRowInternal(KeyEventArgs e, int rowIndex) => 2874internal void OnKeyDownInternal(KeyEventArgs e, int rowIndex) => 2877protected virtual void OnKeyDown(KeyEventArgs e, int rowIndex) 2888protected virtual void OnKeyUp(KeyEventArgs e, int rowIndex) 2892internal void OnKeyUpInternal(KeyEventArgs e, int rowIndex) =>
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (4)
757protected override bool KeyDownUnsharesRow(KeyEventArgs e, int rowIndex) => 760protected override bool KeyUpUnsharesRow(KeyEventArgs e, int rowIndex) => e.KeyCode == Keys.Space; 805protected override void OnKeyDown(KeyEventArgs e, int rowIndex) 819protected override void OnKeyUp(KeyEventArgs e, int rowIndex)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1510public override bool KeyEntersEditMode(KeyEventArgs e)
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (2)
683protected override bool KeyUpUnsharesRow(KeyEventArgs e, int rowIndex) 724protected override void OnKeyUp(KeyEventArgs e, int rowIndex)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
532public override bool KeyEntersEditMode(KeyEventArgs e)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
793protected override void OnKeyDown(KeyEventArgs e)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
2162private void OnButtonKeyDown(object? sender, KeyEventArgs ke) => OnKeyDown(sender, ke); 2320private void OnListKeyDown(object? sender, KeyEventArgs e) 2486private void OnEditKeyDown(object? sender, KeyEventArgs e) 2679protected override void OnKeyDown(KeyEventArgs e) => OnKeyDown(this, e); 2681private void OnKeyDown(object? sender, KeyEventArgs e)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
141protected override void OnKeyDown(KeyEventArgs e)
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
801protected override void OnKeyDown(KeyEventArgs e)
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
1374protected override void OnKeyDown(KeyEventArgs ke) 1698private void SelectNextTab(KeyEventArgs ke, bool forward)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (2)
1844protected override void OnKeyDown(KeyEventArgs e) 2025protected override void OnKeyUp(KeyEventArgs e)
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
650protected override void OnKeyUp(KeyEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (4)
510private void HandleKeyDown(object? sender, KeyEventArgs e) => OnKeyDown(e); 514private void HandleKeyUp(object? sender, KeyEventArgs e) => OnKeyUp(e); 632protected virtual void OnKeyDown(KeyEventArgs e) => RaiseKeyEvent(s_keyDownEvent, e); 636protected virtual void OnKeyUp(KeyEventArgs e) => RaiseKeyEvent(s_keyUpEvent, e);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3073internal void RaiseKeyEvent(object key, KeyEventArgs e) => ((KeyEventHandler?)Events[key])?.Invoke(this, e);
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
2247protected override void OnKeyDown(KeyEventArgs e) 2278protected override void OnKeyUp(KeyEventArgs e)
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (2)
423protected override void OnKeyDown(KeyEventArgs e) 436protected override void OnKeyUp(KeyEventArgs e)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
592protected virtual void OnTextBoxKeyDown(object? source, KeyEventArgs e)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (1)
103protected override void OnKeyUp(KeyEventArgs e)
System\Windows\Forms\DataBinding\BindingNavigator.cs (1)
743private void OnPositionKey(object? sender, KeyEventArgs e)
System\Windows\Forms\Input\KeyEventArgs.cs (1)
15/// Initializes a new instance of the <see cref="KeyEventArgs"/> class.
System\Windows\Forms\Input\KeyEventHandler.cs (1)
11public delegate void KeyEventHandler(object? sender, KeyEventArgs e);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
928protected override void OnKeyDown(KeyEventArgs e) 1005protected override void OnKeyUp(KeyEventArgs e)
System.Windows.Forms.Design (20)
System\ComponentModel\Design\ByteViewer.cs (1)
507protected override void OnKeyDown(KeyEventArgs e)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
632private void ListBox_keyDown(object? sender, KeyEventArgs e)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
94protected override void OnKeyDown(KeyEventArgs kevent)
System\ComponentModel\Design\DateTimeEditor.DateTimeUI.cs (1)
44private void MonthCalKeyDown(object? sender, KeyEventArgs e)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
197private void OnListBoxKeyDown(object? sender, KeyEventArgs e)
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (3)
187private void OnEditControlKeyDown(KeyEventArgs e) 250private void OnReadOnlyTextBoxLabelKeyDown(object? sender, KeyEventArgs e) 256private void OnTextBoxKeyDown(object? sender, KeyEventArgs e)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
94protected override void OnKeyDown(KeyEventArgs e)
System\ComponentModel\Design\ObjectSelectorEditor.Selector.cs (1)
92protected override void OnKeyDown(KeyEventArgs e)
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
270protected override void OnKeyDown(KeyEventArgs e)
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
282private void OnListKeyDown(object? sender, KeyEventArgs ke)
System\Drawing\Design\SelectionPanelBase.cs (1)
61private void OnKeyDown(object? sender, KeyEventArgs e)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1035private void selectedColumns_KeyUp(object? sender, KeyEventArgs e)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
2088protected override void OnKeyUp(KeyEventArgs e)
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
679private void maskedTextBox_KeyDown(object? sender, KeyEventArgs e)
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
90private void maskedTextBox_KeyDown(object sender, KeyEventArgs e)
System\Windows\Forms\Design\StringCollectionEditor.StringCollectionForm.cs (1)
36private void Edit1_keyDown(object? sender, KeyEventArgs e)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1067private void OnKeyUp(object sender, KeyEventArgs e) 1102private void OnKeyDown(object sender, KeyEventArgs e)
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\ByteViewerTests.cs (2)
400public void ByteViewer_OnKeyDown_Invoke_CallsKeyDown(KeyEventArgs eventArgs) 1088public new void OnKeyDown(KeyEventArgs e) => base.OnKeyDown(e);
System.Windows.Forms.Tests (80)
System\Windows\Forms\AxHostTests.cs (1)
2280public void AxHost_OnLeave_Invoke_CallsLeave(KeyEventArgs eventArgs)
System\Windows\Forms\ButtonBaseTests.cs (10)
5492public void ButtonBase_OnKeyDown_Invoke_CallsKeyDown(FlatStyle flatStyle, bool enabled, KeyEventArgs eventArgs, bool expectedHandled, bool expectedIsHandleCreated) 5537public void ButtonBase_OnKeyDown_InvokeMouseDown_CallsKeyDown(FlatStyle flatStyle, bool enabled, KeyEventArgs eventArgs, bool expectedHandled) 5583public void ButtonBase_OnKeyDown_InvokeWithHandle_CallsKeyDown(FlatStyle flatStyle, bool enabled, KeyEventArgs eventArgs, bool expectedHandled, int expectedInvalidatedCallCount) 5641public void ButtonBase_OnKeyDown_InvokeMouseDownWithHandle_CallsKeyDown(FlatStyle flatStyle, bool enabled, KeyEventArgs eventArgs, bool expectedHandled) 5757public void ButtonBase_OnKeyUp_Invoke_CallsKeyUp(FlatStyle flatStyle, bool enabled, KeyEventArgs eventArgs) 5806public void ButtonBase_OnKeyUp_InvokeMouseDown_CallsKeyUp(FlatStyle flatStyle, bool enabled, KeyEventArgs eventArgs, int expectedClickCallCount, bool expectedIsHandleCreated) 5848public void ButtonBase_OnKeyUp_InvokeWithHandle_CallsKeyUp(FlatStyle flatStyle, bool enabled, KeyEventArgs eventArgs) 5911public void ButtonBase_OnKeyUp_InvokeMouseDownWithHandle_CallsKeyUp(FlatStyle flatStyle, bool enabled, KeyEventArgs eventArgs, int expectedClickCallCount, int expectedInvalidatedCallCount) 9349public new void OnKeyDown(KeyEventArgs kevent) => base.OnKeyDown(kevent); 9351public new void OnKeyUp(KeyEventArgs kevent) => base.OnKeyUp(kevent);
System\Windows\Forms\ComboBoxTests.cs (1)
2912public new void OnKeyDown(KeyEventArgs e) => base.OnKeyDown(e);
System\Windows\Forms\ControlTests.cs (2)
1302public new void OnKeyDown(KeyEventArgs e) => base.OnKeyDown(e); 1306public new void OnKeyUp(KeyEventArgs e) => base.OnKeyUp(e);
System\Windows\Forms\ControlTests.Handlers.cs (3)
2992public void Control_OnKeyDown_Invoke_CallsKeyDown(KeyEventArgs eventArgs) 3044public void Control_OnKeyUp_Invoke_CallsKeyUp(KeyEventArgs eventArgs) 3161public void Control_OnLeave_Invoke_CallsLeave(KeyEventArgs eventArgs)
System\Windows\Forms\DataGridViewCellTests.cs (8)
5769public void DataGridViewCell_OnKeyDown_Invoke_Nop(KeyEventArgs e) 5785public void DataGridViewCell_OnKeyUp_Invoke_Nop(KeyEventArgs e) 6518public void OnKeyClick(KeyEventArgs e, int rowIndex) => OnKeyUp(e, rowIndex); 6591public new bool KeyDownUnsharesRow(KeyEventArgs e, int rowIndex) => base.KeyDownUnsharesRow(e, rowIndex); 6593public new bool KeyEntersEditMode(KeyEventArgs e) => base.KeyEntersEditMode(e); 6597public new bool KeyUpUnsharesRow(KeyEventArgs e, int rowIndex) => base.KeyUpUnsharesRow(e, rowIndex); 6627public new void OnKeyDown(KeyEventArgs e, int rowIndex) => base.OnKeyDown(e, rowIndex); 6631public new void OnKeyUp(KeyEventArgs e, int rowIndex) => base.OnKeyUp(e, rowIndex);
System\Windows\Forms\GroupBoxTests.cs (4)
1583public void GroupBox_OnKeyDown_Invoke_CallsKeyDown(KeyEventArgs eventArgs) 1631public void GroupBox_OnKeyUp_Invoke_CallsKeyUp(KeyEventArgs eventArgs) 2363public new void OnKeyDown(KeyEventArgs e) => base.OnKeyDown(e); 2367public new void OnKeyUp(KeyEventArgs e) => base.OnKeyUp(e);
System\Windows\Forms\KeyEventArgsTests.cs (3)
24KeyEventArgs e = new(keyData); 49KeyEventArgs e = new(Keys.A) 63KeyEventArgs e = new(Keys.A)
System\Windows\Forms\LabelTests.cs (4)
749KeyEventArgs keyEventArgs = new KeyEventArgs(Keys.A); 771KeyEventArgs keyEventArgs = new KeyEventArgs(Keys.A); 949public new void OnKeyUp(KeyEventArgs e) => base.OnKeyUp(e); 951public new void OnKeyDown(KeyEventArgs e) => base.OnKeyDown(e);
System\Windows\Forms\PanelTests.cs (4)
890public void Panel_OnKeyDown_Invoke_CallsKeyDown(KeyEventArgs eventArgs) 938public void Panel_OnKeyUp_Invoke_CallsKeyUp(KeyEventArgs eventArgs) 1226public new void OnKeyDown(KeyEventArgs e) => base.OnKeyDown(e); 1230public new void OnKeyUp(KeyEventArgs e) => base.OnKeyUp(e);
System\Windows\Forms\PictureBoxTests.cs (4)
2303public void PictureBox_OnKeyDown_Invoke_CallsKeyDown(KeyEventArgs eventArgs) 2351public void PictureBox_OnKeyUp_Invoke_CallsKeyUp(KeyEventArgs eventArgs) 2906public new void OnKeyDown(KeyEventArgs e) => base.OnKeyDown(e); 2910public new void OnKeyUp(KeyEventArgs e) => base.OnKeyUp(e);
System\Windows\Forms\ProgressBarTests.cs (4)
2226public void ProgressBar_OnKeyDown_Invoke_CallsKeyDown(KeyEventArgs eventArgs) 2274public void ProgressBar_OnKeyUp_Invoke_CallsKeyUp(KeyEventArgs eventArgs) 2660public new void OnKeyDown(KeyEventArgs e) => base.OnKeyDown(e); 2664public new void OnKeyUp(KeyEventArgs e) => base.OnKeyUp(e);
System\Windows\Forms\PropertyGridTests.cs (6)
3620public void PropertyGrid_OnKeyDown_Invoke_CallsKeyDown(KeyEventArgs eventArgs) 3625void handler(object sender, KeyEventArgs e) 3674public void PropertyGrid_OnKeyUp_Invoke_CallsKeyUp(KeyEventArgs eventArgs) 3679void handler(object sender, KeyEventArgs e) 4233public new void OnKeyDown(KeyEventArgs e) => base.OnKeyDown(e); 4237public new void OnKeyUp(KeyEventArgs e) => base.OnKeyUp(e);
System\Windows\Forms\SendKeysTests.cs (2)
29public List<KeyEventArgs> KeyEvents { get; } = []; 31protected override void OnKeyDown(KeyEventArgs e)
System\Windows\Forms\SplitterTests.cs (4)
1827public void Splitter_OnKeyDown_Invoke_CallsKeyDown(KeyEventArgs eventArgs) 1891public void Splitter_OnKeyUp_Invoke_CallsKeyUp(KeyEventArgs eventArgs) 2369public new void OnKeyDown(KeyEventArgs e) => base.OnKeyDown(e); 2373public new void OnKeyUp(KeyEventArgs e) => base.OnKeyUp(e);
System\Windows\Forms\ToolStripControlHostTests.cs (8)
2872public void ToolStripControlHost_OnKeyDown_Invoke_CallsKeyDown(KeyEventArgs eventArgs) 2922public void ToolStripControlHost_OnKeyUp_Invoke_CallsKeyUp(KeyEventArgs eventArgs) 3536public void ToolStripControlHost_OnSubscribeControlEvents_InvokeKeyDown_Success(KeyEventArgs eventArgs) 3576public void ToolStripControlHost_OnSubscribeControlEvents_InvokeKeyUp_Success(KeyEventArgs eventArgs) 4588public new void OnKeyDown(KeyEventArgs e) => base.OnKeyDown(e); 4592public new void OnKeyUp(KeyEventArgs e) => base.OnKeyUp(e); 4677public new void OnKeyDown(KeyEventArgs e) => base.OnKeyDown(e); 4681public new void OnKeyUp(KeyEventArgs e) => base.OnKeyUp(e);
System\Windows\Forms\ToolStripDropDownTests.cs (4)
4062public void ToolStripDropDown_OnKeyDown_Invoke_CallsKeyDown(KeyEventArgs eventArgs) 4110public void ToolStripDropDown_OnKeyUp_Invoke_CallsKeyUp(KeyEventArgs eventArgs) 5204public new void OnKeyDown(KeyEventArgs e) => base.OnKeyDown(e); 5208public new void OnKeyUp(KeyEventArgs e) => base.OnKeyUp(e);
System\Windows\Forms\TreeViewTests.cs (5)
5738public void TreeView_OnKeyDown_Invoke_CallsKeyDown(KeyEventArgs eventArgs) 5776public void TreeView_OnKeyDown_InvokeWithSelectedNode_CallsKeyDown(bool handled, bool checkBoxes, bool cancel, KeyEventArgs eventArgs, int expectedBeforeCheckCallCount, int expectedAfterCheckCallCount, bool expectedHandled) 5908public void TreeView_OnKeyUp_Invoke_CallsKeyUp(bool handled, KeyEventArgs eventArgs, bool expectedHandled) 7654public new void OnKeyDown(KeyEventArgs e) => base.OnKeyDown(e); 7658public new void OnKeyUp(KeyEventArgs e) => base.OnKeyUp(e);
System\Windows\Forms\UpDownBaseTests.cs (3)
2379public void UpDownBase_OnTextBoxKeyDown_Invoke_CallsKeyDown(bool interceptArrowKeys, bool userEdit, object source, KeyEventArgs eventArgs, int expectedUpButtonCallCount, int expectedDownButtonCallCount, int expectedValidateEditTextCallCount, bool expectedHandled) 3060public new void OnTextBoxKeyDown(object source, KeyEventArgs e) => base.OnTextBoxKeyDown(source, e); 3214public new void OnTextBoxKeyDown(object source, KeyEventArgs e) => base.OnTextBoxKeyDown(source, e);
System.Windows.Forms.TestUtilities (2)
CommonTestHelperEx.cs (2)
120public static TheoryData<KeyEventArgs> GetKeyEventArgsTheoryData() 122return new TheoryData<KeyEventArgs>
WinFormsControlsTest (1)
RichTextBoxes.cs (1)
90private void RichTextKeyDown(object sender, KeyEventArgs e)