92 references to Space
System.Windows.Forms (30)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
1120if (kevent.KeyData == Keys.Space) 1163if (kevent.KeyCode is Keys.Enter or Keys.Space)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
10108case Keys.Space: 15720case Keys.Space: 21955Keys.Escape or Keys.Space => true, 21972or Keys.Space 24531case Keys.Space:
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (4)
440e.KeyCode == Keys.Space && !e.Alt && !e.Control && !e.Shift; 443e.KeyCode == Keys.Space; 464if (e.KeyCode == Keys.Space && !e.Alt && !e.Control && !e.Shift) 478if (e.KeyCode == Keys.Space)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (4)
758e.KeyCode == Keys.Space && !e.Alt && !e.Control && !e.Shift; 760protected override bool KeyUpUnsharesRow(KeyEventArgs e, int rowIndex) => e.KeyCode == Keys.Space; 812if (e.KeyCode == Keys.Space && !e.Alt && !e.Control && !e.Shift) 826if (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)
685if (e.KeyCode == Keys.Space && !e.Alt && !e.Control && !e.Shift) 731if (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)
6717if (lvkd->wVKey == (short)Keys.Space)
System\Windows\Forms\Controls\Menus\MenuStrip.cs (2)
230if (keyData == Keys.Space) 241PInvokeCore.PostMessage(ancestor, PInvokeCore.WM_SYSCOMMAND, (WPARAM)PInvoke.SC_KEYMENU, (LPARAM)(int)Keys.Space);
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
241if (keyData == Keys.Space && SupportsSpaceKey && CheckOnClick && Enabled && !IsOnDropDown)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (2)
573if (isTopLevel && (keyCode == Keys.Down || keyCode == Keys.Up || keyCode == Keys.Enter || (SupportsSpaceKey && keyCode == Keys.Space))) 589bool forward = ((keyCode == Keys.Enter) || (SupportsSpaceKey && keyCode == Keys.Space));
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3043if (keyData == Keys.Enter || (_state[s_stateSupportsSpaceKey] && keyData == Keys.Space))
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
368if (Enabled && (keyData == Keys.Enter || (SupportsSpaceKey && keyData == Keys.Space)))
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\Printing\PrintPreviewDialog.PrintPreviewDialogToolStripButton.cs (1)
15if (keyData == Keys.Enter || (SupportsSpaceKey && keyData == Keys.Space))
System.Windows.Forms.Design (2)
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
280case Keys.Space:
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
30Keys.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)
5485yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Space), true, expectedIsHandleCreated }; 5530yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Space), true }; 5576yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Space), true, 1 }; 5634yield 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)] 5750yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Space) }; 5799yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Space), 1, expectedIsHandleCreated }; 5904yield 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)
4405yield return new object[] { Keys.Space, false }; 4435yield return new object[] { Keys.Control | Keys.Space, false }; 4465yield return new object[] { Keys.Alt | Keys.Space, false };
System\Windows\Forms\DataGridViewCellTests.cs (2)
6491cell.OnKeyClick(new KeyEventArgs(Keys.Space), 0); 6499cell.OnKeyClick(new KeyEventArgs(Keys.Space), 0);
System\Windows\Forms\ListViewTests.cs (2)
4520KeyboardSimulator.KeyDown(control, Keys.Space); 4667KeyboardSimulator.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)
3998yield return new object[] { Keys.Space, false }; 4023yield return new object[] { Keys.Control | Keys.Space, false }; 4052yield 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)
5732yield return new object[] { new KeyEventArgs(Keys.Space) }; 5733yield return new object[] { new KeyEventArgs(Keys.Control | Keys.Space) }; 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 }; 5897yield return new object[] { true, new KeyEventArgs(Keys.Space), true }; 5898yield return new object[] { true, new KeyEventArgs(Keys.Control | Keys.Space), true }; 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.UI.IntegrationTests (1)
MenuStripTests.cs (1)
29toolStripMenuItem2.ProcessCmdKey(ref message, keyData: Keys.Space);