92 references to Space
System.Windows.Forms (30)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
1120
if (kevent.KeyData == Keys.
Space
)
1163
if (kevent.KeyCode is Keys.Enter or Keys.
Space
)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
10105
case Keys.
Space
:
15717
case Keys.
Space
:
21952
Keys.Escape or Keys.
Space
=> true,
21969
or Keys.
Space
24528
case Keys.
Space
:
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (4)
437
e.KeyCode == Keys.
Space
&& !e.Alt && !e.Control && !e.Shift;
440
e.KeyCode == Keys.
Space
;
461
if (e.KeyCode == Keys.
Space
&& !e.Alt && !e.Control && !e.Shift)
475
if (e.KeyCode == Keys.
Space
)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (4)
758
e.KeyCode == Keys.
Space
&& !e.Alt && !e.Control && !e.Shift;
760
protected override bool KeyUpUnsharesRow(KeyEventArgs e, int rowIndex) => e.KeyCode == Keys.
Space
;
812
if (e.KeyCode == Keys.
Space
&& !e.Alt && !e.Control && !e.Shift)
826
if (e.KeyCode == Keys.
Space
)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1512
(e.KeyCode == Keys.
Space
&& !e.Shift) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (2)
682
if (e.KeyCode == Keys.
Space
&& !e.Alt && !e.Control && !e.Shift)
728
if (e.KeyCode == Keys.
Space
&& !e.Alt && !e.Control && !e.Shift)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
534
(e.KeyCode == Keys.
Space
&& !e.Shift)) &&
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6717
if (lvkd->wVKey == (short)Keys.
Space
)
System\Windows\Forms\Controls\Menus\MenuStrip.cs (2)
230
if (keyData == Keys.
Space
)
241
PInvokeCore.PostMessage(ancestor, PInvokeCore.WM_SYSCOMMAND, (WPARAM)PInvoke.SC_KEYMENU, (LPARAM)(int)Keys.
Space
);
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
241
if (keyData == Keys.
Space
&& SupportsSpaceKey && CheckOnClick && Enabled && !IsOnDropDown)
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\Controls\TreeView\TreeView.cs (2)
2257
if (CheckBoxes && (e.KeyData & Keys.KeyCode) == Keys.
Space
)
2287
if ((e.KeyData & Keys.KeyCode) == Keys.
Space
)
System\Windows\Forms\Printing\PrintPreviewDialog.PrintPreviewDialogToolStripButton.cs (1)
15
if (keyData == Keys.Enter || (SupportsSpaceKey && keyData == Keys.
Space
))
System.Windows.Forms.Design (2)
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
280
case Keys.
Space
:
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
30
Keys.Right, Keys.S, Keys.
Space
, Keys.T, Keys.Tab, Keys.U, Keys.Up, Keys.V, Keys.W, Keys.X, Keys.Y, Keys.Z
System.Windows.Forms.Tests (59)
System\Windows\Forms\ButtonBaseTests.cs (23)
5487
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Space
), true, expectedIsHandleCreated };
5532
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Space
), true };
5578
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Space
), true, 1 };
5636
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Space
), true };
5690
[InlineData(FlatStyle.Flat, Keys.
Space
, 0)]
5693
[InlineData(FlatStyle.Popup, Keys.
Space
, 0)]
5696
[InlineData(FlatStyle.Standard, Keys.
Space
, 0)]
5699
[InlineData(FlatStyle.System, Keys.
Space
, 0)]
5714
[InlineData(FlatStyle.Flat, Keys.
Space
, 0)]
5717
[InlineData(FlatStyle.Popup, Keys.
Space
, 0)]
5720
[InlineData(FlatStyle.Standard, Keys.
Space
, 0)]
5723
[InlineData(FlatStyle.System, Keys.
Space
, 0)]
5752
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Space
) };
5801
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Space
), 1, expectedIsHandleCreated };
5906
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Space
), 1, expectedCallCount };
5969
[InlineData(FlatStyle.Flat, Keys.
Space
, 0)]
5972
[InlineData(FlatStyle.Popup, Keys.
Space
, 0)]
5975
[InlineData(FlatStyle.Standard, Keys.
Space
, 0)]
5978
[InlineData(FlatStyle.System, Keys.
Space
, 0)]
5993
[InlineData(FlatStyle.Flat, Keys.
Space
, 0)]
5996
[InlineData(FlatStyle.Popup, Keys.
Space
, 0)]
5999
[InlineData(FlatStyle.Standard, Keys.
Space
, 0)]
6002
[InlineData(FlatStyle.System, Keys.
Space
, 0)]
System\Windows\Forms\ControlTests.Methods.cs (3)
4365
yield return new object[] { Keys.
Space
, false };
4395
yield return new object[] { Keys.Control | Keys.
Space
, false };
4425
yield return new object[] { Keys.Alt | Keys.
Space
, false };
System\Windows\Forms\DataGridViewCellTests.cs (2)
6493
cell.OnKeyClick(new KeyEventArgs(Keys.
Space
), 0);
6501
cell.OnKeyClick(new KeyEventArgs(Keys.
Space
), 0);
System\Windows\Forms\ListViewTests.cs (2)
4522
KeyboardSimulator.KeyDown(control, Keys.
Space
);
4669
KeyboardSimulator.KeyDown(control, Keys.
Space
);
System\Windows\Forms\MenuStripTests.cs (3)
693
[InlineData(Keys.
Space
)]
712
[InlineData(Keys.
Space
, true)]
713
[InlineData(Keys.
Space
, false)]
System\Windows\Forms\TabControlTests.cs (3)
4000
yield return new object[] { Keys.
Space
, false };
4025
yield return new object[] { Keys.Control | Keys.
Space
, false };
4054
yield return new object[] { Keys.Alt | Keys.
Space
, false };
System\Windows\Forms\ToolStripControlHostTests.cs (4)
4197
[InlineData(Keys.
Space
)]
4238
[InlineData(Keys.
Space
)]
4254
[InlineData(Keys.
Space
)]
4298
[InlineData(Keys.
Space
)]
System\Windows\Forms\ToolStripItemTests.cs (3)
10361
[InlineData(Keys.
Space
)]
13950
[InlineData(Keys.
Space
)]
14039
[InlineData(Keys.
Space
)]
System\Windows\Forms\ToolStripTests.cs (3)
6915
[InlineData(Keys.
Space
)]
6934
[InlineData(Keys.
Space
, true)]
6935
[InlineData(Keys.
Space
, false)]
System\Windows\Forms\TreeViewTests.cs (13)
5734
yield return new object[] { new KeyEventArgs(Keys.
Space
) };
5735
yield return new object[] { new KeyEventArgs(Keys.Control | Keys.
Space
) };
5766
yield return new object[] { false, true, false, new KeyEventArgs(Keys.
Space
), 1, 1, true };
5767
yield return new object[] { false, true, true, new KeyEventArgs(Keys.
Space
), 1, 0, true };
5768
yield return new object[] { false, true, false, new KeyEventArgs(Keys.Control | Keys.
Space
), 1, 1, true };
5769
yield return new object[] { false, true, true, new KeyEventArgs(Keys.Control | Keys.
Space
), 1, 0, true };
5771
yield return new object[] { true, true, false, new KeyEventArgs(Keys.
Space
), 0, 0, true };
5772
yield return new object[] { true, false, false, new KeyEventArgs(Keys.
Space
), 0, 0, true };
5773
yield return new object[] { false, false, false, new KeyEventArgs(Keys.
Space
), 0, 0, false };
5899
yield return new object[] { true, new KeyEventArgs(Keys.
Space
), true };
5900
yield return new object[] { true, new KeyEventArgs(Keys.Control | Keys.
Space
), true };
5904
yield return new object[] { false, new KeyEventArgs(Keys.
Space
), true };
5905
yield return new object[] { false, new KeyEventArgs(Keys.Control | Keys.
Space
), true };
System.Windows.Forms.UI.IntegrationTests (1)
MenuStripTests.cs (1)
29
toolStripMenuItem2.ProcessCmdKey(ref message, keyData: Keys.
Space
);