1 write to KeyState
System.Windows.Forms (1)
System\Windows\Forms\OLE\DragEventArgs.cs (1)
41KeyState = keyState;
13 references to KeyState
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
212DragEventArgs 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)
880if ((de.KeyState & (int)MODIFIERKEYS_FLAGS.MK_CONTROL) != 0 && (de.AllowedEffect & DragDropEffects.Copy) != 0) 897if ((de.KeyState & (int)MODIFIERKEYS_FLAGS.MK_CONTROL) != 0 954bool copy = (de.KeyState & (int)MODIFIERKEYS_FLAGS.MK_CONTROL) != 0
System.Windows.Forms.Tests (2)
System\Windows\Forms\DragEventArgsTests.cs (2)
27Assert.Equal(keyState, e.KeyState); 41Assert.Equal(keyState, e.KeyState);
System.Windows.Forms.UI.IntegrationTests (4)
DragDropTests.cs (4)
766if ((e.KeyState & (8 + 32)) == (8 + 32) && 774else if ((e.KeyState & 32) == 32 && 780else if ((e.KeyState & 4) == 4 && 786else if ((e.KeyState & 8) == 8 &&