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