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)
10108
case Keys.
Space
:
15720
case Keys.
Space
:
21955
Keys.Escape or Keys.
Space
=> true,
21972
or Keys.
Space
24531
case Keys.
Space
:
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (4)
440
e.KeyCode == Keys.
Space
&& !e.Alt && !e.Control && !e.Shift;
443
e.KeyCode == Keys.
Space
;
464
if (e.KeyCode == Keys.
Space
&& !e.Alt && !e.Control && !e.Shift)
478
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)
1515
(e.KeyCode == Keys.
Space
&& !e.Shift) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (2)
685
if (e.KeyCode == Keys.
Space
&& !e.Alt && !e.Control && !e.Shift)
731
if (e.KeyCode == Keys.
Space
&& !e.Alt && !e.Control && !e.Shift)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
537
(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)
3043
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)
5485
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Space
), true, expectedIsHandleCreated };
5530
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Space
), true };
5576
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Space
), true, 1 };
5634
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Space
), true };
5688
[InlineData(FlatStyle.Flat, Keys.
Space
, 0)]
5691
[InlineData(FlatStyle.Popup, Keys.
Space
, 0)]
5694
[InlineData(FlatStyle.Standard, Keys.
Space
, 0)]
5697
[InlineData(FlatStyle.System, Keys.
Space
, 0)]
5712
[InlineData(FlatStyle.Flat, Keys.
Space
, 0)]
5715
[InlineData(FlatStyle.Popup, Keys.
Space
, 0)]
5718
[InlineData(FlatStyle.Standard, Keys.
Space
, 0)]
5721
[InlineData(FlatStyle.System, Keys.
Space
, 0)]
5750
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Space
) };
5799
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Space
), 1, expectedIsHandleCreated };
5904
yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.
Space
), 1, expectedCallCount };
5967
[InlineData(FlatStyle.Flat, Keys.
Space
, 0)]
5970
[InlineData(FlatStyle.Popup, Keys.
Space
, 0)]
5973
[InlineData(FlatStyle.Standard, Keys.
Space
, 0)]
5976
[InlineData(FlatStyle.System, Keys.
Space
, 0)]
5991
[InlineData(FlatStyle.Flat, Keys.
Space
, 0)]
5994
[InlineData(FlatStyle.Popup, Keys.
Space
, 0)]
5997
[InlineData(FlatStyle.Standard, Keys.
Space
, 0)]
6000
[InlineData(FlatStyle.System, Keys.
Space
, 0)]
System\Windows\Forms\ControlTests.Methods.cs (3)
4405
yield return new object[] { Keys.
Space
, false };
4435
yield return new object[] { Keys.Control | Keys.
Space
, false };
4465
yield return new object[] { Keys.Alt | Keys.
Space
, false };
System\Windows\Forms\DataGridViewCellTests.cs (2)
6491
cell.OnKeyClick(new KeyEventArgs(Keys.
Space
), 0);
6499
cell.OnKeyClick(new KeyEventArgs(Keys.
Space
), 0);
System\Windows\Forms\ListViewTests.cs (2)
4520
KeyboardSimulator.KeyDown(control, Keys.
Space
);
4667
KeyboardSimulator.KeyDown(control, Keys.
Space
);
System\Windows\Forms\MenuStripTests.cs (3)
691
[InlineData(Keys.
Space
)]
710
[InlineData(Keys.
Space
, true)]
711
[InlineData(Keys.
Space
, false)]
System\Windows\Forms\TabControlTests.cs (3)
3998
yield return new object[] { Keys.
Space
, false };
4023
yield return new object[] { Keys.Control | Keys.
Space
, false };
4052
yield return new object[] { Keys.Alt | Keys.
Space
, false };
System\Windows\Forms\ToolStripControlHostTests.cs (4)
4195
[InlineData(Keys.
Space
)]
4236
[InlineData(Keys.
Space
)]
4252
[InlineData(Keys.
Space
)]
4296
[InlineData(Keys.
Space
)]
System\Windows\Forms\ToolStripItemTests.cs (3)
10359
[InlineData(Keys.
Space
)]
13948
[InlineData(Keys.
Space
)]
14037
[InlineData(Keys.
Space
)]
System\Windows\Forms\ToolStripTests.cs (3)
6913
[InlineData(Keys.
Space
)]
6932
[InlineData(Keys.
Space
, true)]
6933
[InlineData(Keys.
Space
, false)]
System\Windows\Forms\TreeViewTests.cs (13)
5732
yield return new object[] { new KeyEventArgs(Keys.
Space
) };
5733
yield return new object[] { new KeyEventArgs(Keys.Control | Keys.
Space
) };
5764
yield return new object[] { false, true, false, new KeyEventArgs(Keys.
Space
), 1, 1, true };
5765
yield return new object[] { false, true, true, new KeyEventArgs(Keys.
Space
), 1, 0, true };
5766
yield return new object[] { false, true, false, new KeyEventArgs(Keys.Control | Keys.
Space
), 1, 1, true };
5767
yield return new object[] { false, true, true, new KeyEventArgs(Keys.Control | Keys.
Space
), 1, 0, true };
5769
yield return new object[] { true, true, false, new KeyEventArgs(Keys.
Space
), 0, 0, true };
5770
yield return new object[] { true, false, false, new KeyEventArgs(Keys.
Space
), 0, 0, true };
5771
yield return new object[] { false, false, false, new KeyEventArgs(Keys.
Space
), 0, 0, false };
5897
yield return new object[] { true, new KeyEventArgs(Keys.
Space
), true };
5898
yield return new object[] { true, new KeyEventArgs(Keys.Control | Keys.
Space
), true };
5902
yield return new object[] { false, new KeyEventArgs(Keys.
Space
), true };
5903
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
);