95 references to Modifiers
PresentationCore (3)
Core\CSharp\System\Windows\Input\AccessKeyManager.cs (1)
430
(scope is PresentationSource) && (Keyboard.
Modifiers
& ModifierKeys.Alt) != ModifierKeys.Alt)
Core\CSharp\System\Windows\Input\Command\KeyGesture.cs (1)
186
return ( ( (int)Key == (int)keyEventArgs.RealKey ) && ( this.Modifiers == Keyboard.
Modifiers
) );
Core\CSharp\System\Windows\Input\Command\MouseGesture.cs (1)
139
return ( ( (int)this.MouseAction == (int)mouseAction ) && ( this.Modifiers == Keyboard.
Modifiers
) );
PresentationFramework (82)
src\Framework\System\Windows\Controls\CalendarKeyboardHelper.cs (2)
9
ctrl = (Keyboard.
Modifiers
& ModifierKeys.Control) == ModifierKeys.Control;
10
shift = (Keyboard.
Modifiers
& ModifierKeys.Shift) == ModifierKeys.Shift;
src\Framework\System\Windows\Controls\ComboBox.cs (9)
1361
NavigateByLine(HighlightedInfo, FocusNavigationDirection.Up, new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
1381
NavigateByLine(HighlightedInfo, FocusNavigationDirection.Down, new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
1420
NavigateToStart(new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
1435
NavigateToEnd(new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
1450
NavigateByLine(HighlightedInfo, FocusNavigationDirection.Right, new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
1473
NavigateByLine(HighlightedInfo, FocusNavigationDirection.Left, new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
1494
NavigateByPage(HighlightedInfo, FocusNavigationDirection.Up, new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
1502
NavigateByPage(HighlightedInfo, FocusNavigationDirection.Down, new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
1508
if (Keyboard.
Modifiers
== ModifierKeys.Control)
src\Framework\System\Windows\Controls\ContextMenu.cs (2)
437
NavigateToStart(new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
446
NavigateToEnd(new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
src\Framework\System\Windows\Controls\DataGrid.cs (7)
1374
(Keyboard.
Modifiers
& ModifierKeys.Shift) == ModifierKeys.Shift;
5345
(_isDraggingSelection || ((Keyboard.
Modifiers
& ModifierKeys.Shift) == ModifierKeys.Shift));
5357
return (Keyboard.
Modifiers
& ModifierKeys.Control) == ModifierKeys.Control;
5890
new ItemNavigateArgs(e.KeyboardDevice, Keyboard.
Modifiers
),
6207
PrepareToNavigateByPage(startingInfo, startingElement, direction, new ItemNavigateArgs(Keyboard.PrimaryDevice, Keyboard.
Modifiers
), out targetElement);
7129
(Keyboard.
Modifiers
& ModifierKeys.Shift) != ModifierKeys.Shift);
7174
if ((Keyboard.
Modifiers
& ModifierKeys.Shift) == ModifierKeys.Shift)
src\Framework\System\Windows\Controls\DataGridCell.cs (1)
901
bool isCtrlKeyPressed = (Keyboard.
Modifiers
& ModifierKeys.Control) == ModifierKeys.Control;
src\Framework\System\Windows\Controls\DatePicker.cs (1)
1154
if ((Keyboard.
Modifiers
& ModifierKeys.Alt) == ModifierKeys.Alt)
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
713
if ((Keyboard.
Modifiers
& ModifierKeys.Control) == ModifierKeys.Control)
src\Framework\System\Windows\Controls\ItemsControl.cs (4)
3311
NavigateByLine(startingInfo, FocusNavigationDirection.Up, new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.
Modifiers
));
3316
NavigateByLine(startingInfo, FocusNavigationDirection.Down, new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.
Modifiers
));
3331
NavigateByLine(startingInfo, direction, new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.
Modifiers
));
3341
NavigateByLine(startingInfo, direction, new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.
Modifiers
));
src\Framework\System\Windows\Controls\ListBox.cs (23)
320
if (((Keyboard.
Modifiers
& ModifierKeys.Control) == (ModifierKeys.Control)) && (SelectionMode == SelectionMode.Extended))
333
if (((Keyboard.
Modifiers
& ModifierKeys.Control) == (ModifierKeys.Control)) && (SelectionMode == SelectionMode.Extended))
376
new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
)))
390
NavigateToStart(new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
394
NavigateToEnd(new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
410
if ((Keyboard.
Modifiers
& (ModifierKeys.Control|ModifierKeys.Alt)) == ModifierKeys.Alt)
418
if (IsTextSearchEnabled && Keyboard.
Modifiers
== ModifierKeys.None)
435
if ((Keyboard.
Modifiers
& ModifierKeys.Control) == ModifierKeys.Control)
451
if ((Keyboard.
Modifiers
& (ModifierKeys.Control | ModifierKeys.Shift)) == ModifierKeys.Control)
456
else if ((Keyboard.
Modifiers
& (ModifierKeys.Control | ModifierKeys.Shift)) == ModifierKeys.Shift)
461
else if ((Keyboard.
Modifiers
& ModifierKeys.Shift) == 0)
481
NavigateByPage(FocusNavigationDirection.Up, new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
485
NavigateByPage(FocusNavigationDirection.Down, new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
673
else if ((Keyboard.
Modifiers
& ModifierKeys.Control) == ModifierKeys.Control)
690
if ((Keyboard.
Modifiers
& (ModifierKeys.Control | ModifierKeys.Shift)) == (ModifierKeys.Control | ModifierKeys.Shift))
694
else if ((Keyboard.
Modifiers
& ModifierKeys.Control) == ModifierKeys.Control)
698
else if ((Keyboard.
Modifiers
& ModifierKeys.Shift) == ModifierKeys.Shift)
712
if ((Keyboard.
Modifiers
& (ModifierKeys.Control | ModifierKeys.Shift)) == 0)
729
NavigateToItem(ItemInfoFromContainer(listItem), new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.
Modifiers
));
878
if ((Keyboard.
Modifiers
& ModifierKeys.Control) == 0)
889
if ((Keyboard.
Modifiers
& ModifierKeys.Shift) == ModifierKeys.Shift)
891
bool clearCurrentSelection = (Keyboard.
Modifiers
& ModifierKeys.Control) == 0;
894
else if ((Keyboard.
Modifiers
& ModifierKeys.Control) == 0)
src\Framework\System\Windows\Controls\MenuItem.cs (6)
1954
if ((Keyboard.
Modifiers
& ModifierKeys.Shift) == ModifierKeys.Shift)
1956
NavigateToEnd(new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
1960
NavigateToStart(new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
2003
NavigateToStart(new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
2013
NavigateToEnd(new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
2402
NavigateToStart(new ItemNavigateArgs(Keyboard.PrimaryDevice, Keyboard.
Modifiers
));
src\Framework\System\Windows\Controls\PopupControlService.cs (3)
216
(e.SystemKey == Key.F10) && ((Keyboard.
Modifiers
& ModifierKeys.Shift) == ModifierKeys.Shift) && ((Keyboard.
Modifiers
& ModifierKeys.Control) == ModifierKeys.Control))
220
else if ((e.SystemKey == Key.F10) && ((Keyboard.
Modifiers
& ModifierKeys.Shift) == ModifierKeys.Shift))
src\Framework\System\Windows\Controls\Primitives\ButtonBase.cs (2)
604
if ((Keyboard.
Modifiers
& (ModifierKeys.Control | ModifierKeys.Alt)) != ModifierKeys.Alt)
668
if ((Keyboard.
Modifiers
& (ModifierKeys.Control | ModifierKeys.Alt)) != ModifierKeys.Alt)
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (1)
157
((Keyboard.
Modifiers
& ModifierKeys.Shift) == ModifierKeys.Shift))
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
433
if ((Keyboard.
Modifiers
& ModifierKeys.Control) == ModifierKeys.Control)
src\Framework\System\Windows\Controls\Slider.cs (1)
187
if (keyEventArgs != null && slider != null && Keyboard.
Modifiers
== ModifierKeys.None)
src\Framework\System\Windows\Controls\TreeView.cs (5)
604
return ((Keyboard.
Modifiers
& ModifierKeys.Control) == (ModifierKeys.Control));
612
return ((Keyboard.
Modifiers
& ModifierKeys.Shift) == (ModifierKeys.Shift));
619
return NavigateToStartInternal(new ItemNavigateArgs(Keyboard.PrimaryDevice, Keyboard.
Modifiers
), true /*shouldFocus*/, out container);
626
return NavigateToEndInternal(new ItemNavigateArgs(Keyboard.PrimaryDevice, Keyboard.
Modifiers
), true /*shouldFocus*/, out container);
722
new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
src\Framework\System\Windows\Controls\TreeViewItem.cs (2)
657
return ((Keyboard.
Modifiers
& ModifierKeys.Control) == (ModifierKeys.Control));
702
new ItemNavigateArgs(e.Device, Keyboard.
Modifiers
));
src\Framework\System\Windows\Documents\Hyperlink.cs (2)
499
if (IsEnabled && (!IsEditable || ((Keyboard.
Modifiers
& ModifierKeys.Control) != 0)))
852
if ((Keyboard.
Modifiers
& ModifierKeys.Control) == 0)
src\Framework\System\windows\Documents\TextEditorMouse.cs (2)
117
else if (clickCount == 2 && (Keyboard.
Modifiers
& ModifierKeys.Shift) == 0 && This.Selection.IsEmpty)
124
else if (clickCount == 3 && (Keyboard.
Modifiers
& ModifierKeys.Shift) == 0)
src\Framework\System\windows\Documents\TextSelection.cs (3)
801
if ((Keyboard.
Modifiers
& ModifierKeys.Shift) != 0)
911
bool disableWordExpansion = _textEditor.AutoWordSelection == false || ((Keyboard.
Modifiers
& ModifierKeys.Shift) != 0 && (Keyboard.
Modifiers
& ModifierKeys.Control) != 0);
src\Framework\System\Windows\Documents\TextStore.cs (2)
2903
if ((Keyboard.
Modifiers
& ModifierKeys.Shift) != 0)
2907
if ((Keyboard.
Modifiers
& ModifierKeys.Control) != 0)
src\Framework\System\Windows\Input\KeyboardNavigation.cs (2)
1030
return Navigate(currentElement, request, Keyboard.
Modifiers
);
3282
if ((Keyboard.
Modifiers
& (ModifierKeys.Control | ModifierKeys.Shift | ModifierKeys.Windows)) == ModifierKeys.None)
System.Activities.Core.Presentation (2)
System\ServiceModel\Activities\Presentation\ContentCorrelationTypeExpander.xaml.cs (1)
183
if (null != item && item.IsSelected && item.IsSelectionActive && Key.Enter == e.Key && Keyboard.
Modifiers
== ModifierKeys.None)
System\ServiceModel\Activities\Presentation\MessageQueryEditor.xaml.cs (1)
92
if (e.Key == Key.Enter && Keyboard.
Modifiers
== ModifierKeys.None)
System.Activities.Presentation (8)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\PropertySelection.cs (1)
407
if (Keyboard.
Modifiers
== ModifierKeys.Control)
System.Activities.Presentation\System\Activities\Presentation\DefaultCommandExtensionCallback.cs (3)
177
else if (keyArgs.Key == this.chordKey && (Keyboard.
Modifiers
== ModifierKeys.None || Keyboard.
Modifiers
== ModifierKeys.Control))
190
else if (Keyboard.
Modifiers
!= ModifierKeys.Control)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (4)
709
if (!e.Handled && Keyboard.
Modifiers
== ModifierKeys.None && e.OriginalSource is WorkflowViewElement)
839
if (Keyboard.
Modifiers
== ModifierKeys.Control)
921
if ((null != keyArgs && keyArgs.Key == Key.Enter && Keyboard.
Modifiers
== ModifierKeys.None) || null != mouseArgs)
938
if (null != breadcrumbItems && breadcrumbItems.Items.Count > 0 && Keyboard.
Modifiers
== ModifierKeys.None && (e.Key == Key.Left || e.Key == Key.Right))