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)
8569
Keys keyData = (Keys)(nint)msg.WParamInternal |
ModifierKeys
;
8637
Keys keyData = (Keys)(nint)message.WParamInternal |
ModifierKeys
;
8882
ke = new KeyEventArgs((Keys)(int)m.WParamInternal |
ModifierKeys
);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
2020
Debug.Assert((
ModifierKeys
& Keys.Alt) == 0);
2038
Debug.Assert((
ModifierKeys
& Keys.Alt) == 0);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (8)
11898
Keys nModifier =
ModifierKeys
;
16463
if ((
ModifierKeys
& (Keys.Shift | Keys.Alt)) != 0 || MouseButtons != MouseButtons.None)
16468
bool verticalScroll = ((
ModifierKeys
& Keys.Control) == 0);
21510
if (_ptCurrentCell.X != -1 && !IsCurrentCellInEditMode &&
ModifierKeys
== 0)
21897
KeyEventArgs ke = new((Keys)(nint)m.WParamInternal |
ModifierKeys
);
21913
if (BeginEditInternal(selectAll: !(ke.KeyCode == Keys.F2 &&
ModifierKeys
== 0 && EditMode == DataGridViewEditMode.EditOnKeystrokeOrF2)))
21945
KeyEventArgs ke = new((Keys)(nint)m.WParamInternal |
ModifierKeys
);
30031
Keys modifierKeys =
ModifierKeys
;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (3)
258
&& !(
ModifierKeys
== Keys.Shift && Multiline && AcceptsReturn))
269
if (m.MsgInternal == PInvokeCore.WM_CHAR &&
ModifierKeys
== Keys.Control && Multiline && AcceptsReturn)
278
if (m.MsgInternal == PInvokeCore.WM_KEYDOWN &&
ModifierKeys
== Keys.Control)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
1546
Keys modifiers =
ModifierKeys
;
2612
if ((
ModifierKeys
& (Keys.Alt | Keys.Control)) != 0)
3118
if ((
ModifierKeys
& (Keys.Shift | Keys.Alt)) != 0 || MouseButtons != MouseButtons.None)
3812
if (
ModifierKeys
!= 0)
5333
if (_selectedGridEntry is not null && (
ModifierKeys
& Keys.Shift) == 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
357
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)
2849
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)
2055
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)
164
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)
1046
Keys modifierKeys =
ModifierKeys
;
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
1459
de.Effect = (Control.
ModifierKeys
== Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;
1660
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)
2285
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;