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)
10105case Keys.Space: 15717case Keys.Space: 21952Keys.Escape or Keys.Space => true, 21969or Keys.Space 24528case Keys.Space:
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (4)
437e.KeyCode == Keys.Space && !e.Alt && !e.Control && !e.Shift; 440e.KeyCode == Keys.Space; 461if (e.KeyCode == Keys.Space && !e.Alt && !e.Control && !e.Shift) 475if (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)
1512(e.KeyCode == Keys.Space && !e.Shift) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (2)
682if (e.KeyCode == Keys.Space && !e.Alt && !e.Control && !e.Shift) 728if (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)
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)
3045if (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)
5487yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Space), true, expectedIsHandleCreated }; 5532yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Space), true }; 5578yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Space), true, 1 }; 5636yield 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)] 5752yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Space) }; 5801yield return new object[] { flatStyle, enabled, new KeyEventArgs(Keys.Space), 1, expectedIsHandleCreated }; 5906yield 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)
4365yield return new object[] { Keys.Space, false }; 4395yield return new object[] { Keys.Control | Keys.Space, false }; 4425yield return new object[] { Keys.Alt | Keys.Space, false };
System\Windows\Forms\DataGridViewCellTests.cs (2)
6493cell.OnKeyClick(new KeyEventArgs(Keys.Space), 0); 6501cell.OnKeyClick(new KeyEventArgs(Keys.Space), 0);
System\Windows\Forms\ListViewTests.cs (2)
4522KeyboardSimulator.KeyDown(control, Keys.Space); 4669KeyboardSimulator.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)
4000yield return new object[] { Keys.Space, false }; 4025yield return new object[] { Keys.Control | Keys.Space, false }; 4054yield 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)
5734yield return new object[] { new KeyEventArgs(Keys.Space) }; 5735yield return new object[] { new KeyEventArgs(Keys.Control | Keys.Space) }; 5766yield return new object[] { false, true, false, new KeyEventArgs(Keys.Space), 1, 1, true }; 5767yield return new object[] { false, true, true, new KeyEventArgs(Keys.Space), 1, 0, true }; 5768yield return new object[] { false, true, false, new KeyEventArgs(Keys.Control | Keys.Space), 1, 1, true }; 5769yield return new object[] { false, true, true, new KeyEventArgs(Keys.Control | Keys.Space), 1, 0, true }; 5771yield return new object[] { true, true, false, new KeyEventArgs(Keys.Space), 0, 0, true }; 5772yield return new object[] { true, false, false, new KeyEventArgs(Keys.Space), 0, 0, true }; 5773yield return new object[] { false, false, false, new KeyEventArgs(Keys.Space), 0, 0, false }; 5899yield return new object[] { true, new KeyEventArgs(Keys.Space), true }; 5900yield return new object[] { true, new KeyEventArgs(Keys.Control | Keys.Space), true }; 5904yield return new object[] { false, new KeyEventArgs(Keys.Space), true }; 5905yield 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);