57 references to ModifierKeys
System.Windows.Forms (47)
winforms\Managed\System\WinForms\ComboBox.cs (2)
2224
Debug.Assert((
ModifierKeys
& Keys.Alt) == 0);
2237
Debug.Assert((
ModifierKeys
& Keys.Alt) == 0);
winforms\Managed\System\WinForms\Control.cs (4)
10162
Keys keyData = (Keys)(unchecked((int)(long)msg.WParam) | (int)
ModifierKeys
);
10244
Keys keyData = (Keys)(unchecked((int)(long)msg.WParam) | (int)
ModifierKeys
);
10647
ke = new KeyEventArgs((Keys)(unchecked((int)(long)m.WParam)) |
ModifierKeys
);
16599
target.SelectNextControl(null, Control.
ModifierKeys
!= Keys.Shift, true, true, true);
winforms\Managed\System\WinForms\DataGrid.cs (6)
4021
Keys nModifier =
ModifierKeys
;
4263
&& !(((Control.
ModifierKeys
& Keys.Control) == Keys.Control) && (Control.
ModifierKeys
& Keys.Alt) == 0)){
4366
if ((
ModifierKeys
& Keys.Control) != 0)
8211
KeyEventArgs ke = new KeyEventArgs((Keys)(unchecked((int)(long)m.WParam)) |
ModifierKeys
);
8237
KeyEventArgs ke = new KeyEventArgs((Keys)(unchecked((int)(long)m.WParam)) |
ModifierKeys
);
winforms\Managed\System\WinForms\DataGridTextBox.cs (7)
79
if (e.KeyChar == ' ' && (Control.
ModifierKeys
& Keys.Shift) == Keys.Shift)
88
if ((Control.
ModifierKeys
& Keys.Control) == Keys.Control && ((Control.
ModifierKeys
& Keys.Alt) == 0))
104
Keys modifierKeys =
ModifierKeys
;
192
if (IsInEditOrNavigateMode && (Control.
ModifierKeys
& Keys.Shift) == Keys.Shift)
203
if (IsInEditOrNavigateMode && (Control.
ModifierKeys
& Keys.Control) == Keys.Control)
240
if ((
ModifierKeys
& Keys.Control) == Keys.Control)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (8)
12271
Keys nModifier =
ModifierKeys
;
16899
if ((
ModifierKeys
& (Keys.Shift | Keys.Alt)) != 0 || MouseButtons != MouseButtons.None)
16904
bool verticalScroll = ((
ModifierKeys
& Keys.Control) == 0);
21953
ModifierKeys
== 0)
22318
KeyEventArgs ke = new KeyEventArgs((Keys)(unchecked((int)(long)m.WParam)) |
ModifierKeys
);
22335
if (BeginEditInternal(!(ke.KeyCode == Keys.F2 &&
ModifierKeys
== 0 && this.EditMode == DataGridViewEditMode.EditOnKeystrokeOrF2) /*selectAll*/))
22371
KeyEventArgs ke = new KeyEventArgs((Keys)((int)m.WParam) |
ModifierKeys
);
29916
Keys modifierKeys =
ModifierKeys
;
winforms\Managed\System\WinForms\DataGridViewTextBoxEditingControl.cs (3)
295
!(
ModifierKeys
== Keys.Shift && this.Multiline && this.AcceptsReturn))
306
ModifierKeys
== Keys.Control && this.Multiline && this.AcceptsReturn)
314
if (m.Msg == NativeMethods.WM_KEYDOWN &&
ModifierKeys
== Keys.Control)
winforms\Managed\System\WinForms\NumericUpDown.cs (1)
544
else if ((
ModifierKeys
& (Keys.Control | Keys.Alt)) != 0) {
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (1)
811
Keys keyData = (Keys)((int)msg.WParam | (int)
ModifierKeys
);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (6)
1828
Keys modifiers =
ModifierKeys
;
2827
if (
ModifierKeys
!= 0) {
2839
if ((
ModifierKeys
& (Keys.Alt | Keys.Control)) != 0) {
3317
if ((
ModifierKeys
& (Keys.Shift | Keys.Alt)) != 0 || MouseButtons != MouseButtons.None) {
5360
if ((
ModifierKeys
& Keys.Shift) == 0) {
6915
if (psheet.NeedsCommit || this.WantsTab((
ModifierKeys
& Keys.Shift) == 0)) {
winforms\Managed\System\WinForms\RichTextBox.cs (1)
3873
Keys k = Control.
ModifierKeys
;
winforms\Managed\System\WinForms\ToolStrip.cs (1)
3021
if (!inMenuMode && Control.
ModifierKeys
== Keys.Alt) {
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (2)
126
if ((Control.
ModifierKeys
!= Keys.Alt) &&
142
if ((Control.
ModifierKeys
!= Keys.Alt) &&
winforms\Managed\System\WinForms\ToolStripGrip.cs (1)
129
return (Control.MouseButtons == MouseButtons.Left) && (Control.
ModifierKeys
== Keys.None);
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
2492
if (Control.
ModifierKeys
== Keys.Alt) {
winforms\Managed\System\WinForms\TrackBar.cs (1)
980
if ((
ModifierKeys
& (Keys.Shift | Keys.Alt)) != 0 || MouseButtons != MouseButtons.None) {
winforms\Managed\System\WinForms\UpDownBase.cs (1)
996
if ((
ModifierKeys
& (Keys.Shift | Keys.Alt)) != 0 || MouseButtons != MouseButtons.None) {
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1843
int keyCode = (int)msg.wParam | (int)Control.
ModifierKeys
;
System.Workflow.ComponentModel (10)
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (4)
187
if ((Control.
ModifierKeys
& Keys.Shift) > 0)
197
if ((Control.
ModifierKeys
& Keys.Shift) > 0)
207
if ((Control.
ModifierKeys
& Keys.Shift) > 0)
233
if ((Control.
ModifierKeys
& Keys.Shift) == 0)
AuthoringOM\Design\MessageFilters\WindowManager.cs (3)
66
if (this.currentActiveDesigner != null && ((Control.
ModifierKeys
& (Keys.Control | Keys.Shift)) == 0))
196
UpdateViewOnMouseWheel(eventArgs, Control.
ModifierKeys
);
422
if (Control.
ModifierKeys
== Keys.Control)
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (2)
82
this.currentState = ((Control.
ModifierKeys
& Keys.Shift) != 0) ? ((this.initialState == ZoomState.In) ? ZoomState.Out : ZoomState.In) : this.initialState;
190
this.currentState = ((Control.
ModifierKeys
& Keys.Shift) != 0) ? ((this.initialState == ZoomState.In) ? ZoomState.Out : ZoomState.In) : this.initialState;
AuthoringOM\Design\WorkflowView.cs (1)
2230
KeyEventArgs eventArgs = new KeyEventArgs((Keys)(unchecked((int)(long)m.WParam)) |
ModifierKeys
);