1 write to KeyState
System.Windows.Forms (1)
System\Windows\Forms\OLE\DragEventArgs.cs (1)
41
KeyState
= keyState;
13 references to KeyState
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
211
DragEventArgs dragEnterArgs = new(e.Data, e.
KeyState
, e.X, e.Y, e.AllowedEffect, e.Effect, e.DropImageType, e.Message, e.MessageReplacementToken)
System\Windows\Forms\OLE\DragEventArgs.cs (2)
125
&& dragEventArgs.
KeyState
==
KeyState
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\Behavior\ToolboxSnapDragDropEventArgs.cs (1)
22
: base(origArgs.Data, origArgs.
KeyState
, origArgs.X, origArgs.Y, origArgs.AllowedEffect, origArgs.Effect)
System\Windows\Forms\Design\OleDragDropHandler.cs (3)
880
if ((de.
KeyState
& (int)MODIFIERKEYS_FLAGS.MK_CONTROL) != 0 && (de.AllowedEffect & DragDropEffects.Copy) != 0)
897
if ((de.
KeyState
& (int)MODIFIERKEYS_FLAGS.MK_CONTROL) != 0
954
bool copy = (de.
KeyState
& (int)MODIFIERKEYS_FLAGS.MK_CONTROL) != 0
System.Windows.Forms.Tests (2)
System\Windows\Forms\DragEventArgsTests.cs (2)
27
Assert.Equal(keyState, e.
KeyState
);
41
Assert.Equal(keyState, e.
KeyState
);
System.Windows.Forms.UI.IntegrationTests (4)
DragDropTests.cs (4)
825
if ((e.
KeyState
& (8 + 32)) == (8 + 32) &&
833
else if ((e.
KeyState
& 32) == 32 &&
839
else if ((e.
KeyState
& 4) == 4 &&
845
else if ((e.
KeyState
& 8) == 8 &&