62 references to ModifierKeys
Microsoft.VisualBasic.Forms (3)
Microsoft\VisualBasic\Devices\Keyboard.vb (3)
21Dim keys As Keys = Control.ModifierKeys 46Dim keys As Keys = Control.ModifierKeys 85Dim keys As Keys = Control.ModifierKeys
System.Windows.Forms (34)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
379target.SelectNextControl(null, ModifierKeys != Keys.Shift, tabStopOnly: true, nested: true, wrap: true);
System\Windows\Forms\Control.cs (3)
8528Keys keyData = (Keys)(nint)msg.WParamInternal | ModifierKeys; 8596Keys keyData = (Keys)(nint)message.WParamInternal | ModifierKeys; 8841ke = new KeyEventArgs((Keys)(int)m.WParamInternal | ModifierKeys);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
2019Debug.Assert((ModifierKeys & Keys.Alt) == 0); 2037Debug.Assert((ModifierKeys & Keys.Alt) == 0);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (8)
11889Keys nModifier = ModifierKeys; 16444if ((ModifierKeys & (Keys.Shift | Keys.Alt)) != 0 || MouseButtons != MouseButtons.None) 16449bool verticalScroll = ((ModifierKeys & Keys.Control) == 0); 21495if (_ptCurrentCell.X != -1 && !IsCurrentCellInEditMode && ModifierKeys == 0) 21882KeyEventArgs ke = new((Keys)(nint)m.WParamInternal | ModifierKeys); 21898if (BeginEditInternal(selectAll: !(ke.KeyCode == Keys.F2 && ModifierKeys == 0 && EditMode == DataGridViewEditMode.EditOnKeystrokeOrF2))) 21930KeyEventArgs ke = new((Keys)(nint)m.WParamInternal | ModifierKeys); 30012Keys modifierKeys = ModifierKeys;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (3)
260&& !(ModifierKeys == Keys.Shift && Multiline && AcceptsReturn)) 271if (m.MsgInternal == PInvokeCore.WM_CHAR && ModifierKeys == Keys.Control && Multiline && AcceptsReturn) 280if (m.MsgInternal == PInvokeCore.WM_KEYDOWN && ModifierKeys == Keys.Control)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
1546Keys modifiers = ModifierKeys; 2611if ((ModifierKeys & (Keys.Alt | Keys.Control)) != 0) 3118if ((ModifierKeys & (Keys.Shift | Keys.Alt)) != 0 || MouseButtons != MouseButtons.None) 3812if (ModifierKeys != 0) 5337if (_selectedGridEntry is not null && (ModifierKeys & Keys.Shift) == 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
354if (PropertyGridView.EditTextBoxNeedsCommit || PropertyGridView.WantsTab(forward: (ModifierKeys & Keys.Shift) == 0))
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (1)
88Keys modifierKeys = ModifierKeys;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
2851if (!inMenuMode && ModifierKeys == Keys.Alt)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (2)
131if ((Control.ModifierKeys != Keys.Alt) && 152if ((Control.ModifierKeys != Keys.Alt) &&
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (1)
106return (Control.MouseButtons == MouseButtons.Left) && (Control.ModifierKeys == Keys.None);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2063if (Control.ModifierKeys == Keys.Alt)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
925if ((ModifierKeys & (Keys.Shift | Keys.Alt)) != 0 || MouseButtons != MouseButtons.None)
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
477else if ((ModifierKeys & (Keys.Control | Keys.Alt)) != 0)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
733if ((ModifierKeys & (Keys.Shift | Keys.Alt)) != 0 || MouseButtons != MouseButtons.None)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.WebBrowserSite.cs (1)
165int keyCode = (int)(uint)lpMsg->wParam | (int)ModifierKeys;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
904Keys keyData = (Keys)(nint)msg.WParamInternal | ModifierKeys;
System.Windows.Forms.Design (25)
System\ComponentModel\Design\CollectionEditor.FilterListBox.cs (1)
77if ((ModifierKeys & (Keys.Control | Keys.Alt)) != 0)
System\ComponentModel\Design\SelectionService.cs (2)
373fToggle = (Control.ModifierKeys & (Keys.Control | Keys.Shift)) > 0; 374fAdd |= Control.ModifierKeys == Keys.Shift;
System\Windows\Forms\Design\Behavior\Behavior.cs (1)
330e.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
619bool altKeyPressed = Control.ModifierKeys == Keys.Alt;
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
464bool altKeyPressed = Control.ModifierKeys == Keys.Alt;
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (1)
304bool altKeyPressed = Control.ModifierKeys == Keys.Alt;
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
311? Control.ModifierKeys == Keys.Control
System\Windows\Forms\Design\ControlDesigner.cs (2)
1307_ctrlSelect = (Control.ModifierKeys & Keys.Control) != 0; 1332bool shiftSelect = (Control.ModifierKeys & Keys.Shift) != 0;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1048Keys modifierKeys = ModifierKeys;
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
1459de.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move; 1659de.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;
System\Windows\Forms\Design\PbrsForward.cs (1)
136if ((Control.ModifierKeys & (Keys.Control | Keys.Alt)) != 0)
System\Windows\Forms\Design\SelectionUIService.cs (1)
538_ctrlSelect = (ModifierKeys & Keys.Control) != Keys.None;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1284(_localDragControl is not null && existingControl is not null && Control.ModifierKeys == Keys.Control))
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
2286de.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (4)
352bool removeSel = (Control.ModifierKeys & (Keys.Control | Keys.Shift)) > 0; 381bool shiftPressed = (Control.ModifierKeys & Keys.Shift) > 0; 450else if (shiftPressed || (Control.ModifierKeys & Keys.Control) > 0) 886e.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (2)
686bool shiftPressed = (Control.ModifierKeys & Keys.Shift) > 0; 731bool shiftPressed = (Control.ModifierKeys & Keys.Shift) > 0;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
2651e.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move; 2666e.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;