96 references to Modifiers
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
InlineRename\UI\Adornment\RenameFlyout.xaml.cs (2)
177_viewModel.PreviewChangesFlag = Keyboard.Modifiers.HasFlag(ModifierKeys.Shift); 202if (Keyboard.Modifiers == ModifierKeys.Control)
PresentationCore (3)
System\Windows\Input\AccessKeyManager.cs (1)
369(scope is PresentationSource) && (Keyboard.Modifiers & ModifierKeys.Alt) != ModifierKeys.Alt)
System\Windows\Input\Command\KeyGesture.cs (1)
183return ( ( (int)Key == (int)keyEventArgs.RealKey ) && ( this.Modifiers == Keyboard.Modifiers ) );
System\Windows\Input\Command\MouseGesture.cs (1)
136return ( ( (int)this.MouseAction == (int)mouseAction ) && ( this.Modifiers == Keyboard.Modifiers ) );
PresentationFramework (83)
System\Windows\Controls\CalendarKeyboardHelper.cs (2)
13ctrl = (Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control; 14shift = (Keyboard.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift;
System\Windows\Controls\ComboBox.cs (9)
1359NavigateByLine(HighlightedInfo, FocusNavigationDirection.Up, new ItemNavigateArgs(e.Device, Keyboard.Modifiers)); 1379NavigateByLine(HighlightedInfo, FocusNavigationDirection.Down, new ItemNavigateArgs(e.Device, Keyboard.Modifiers)); 1418NavigateToStart(new ItemNavigateArgs(e.Device, Keyboard.Modifiers)); 1433NavigateToEnd(new ItemNavigateArgs(e.Device, Keyboard.Modifiers)); 1448NavigateByLine(HighlightedInfo, FocusNavigationDirection.Right, new ItemNavigateArgs(e.Device, Keyboard.Modifiers)); 1471NavigateByLine(HighlightedInfo, FocusNavigationDirection.Left, new ItemNavigateArgs(e.Device, Keyboard.Modifiers)); 1492NavigateByPage(HighlightedInfo, FocusNavigationDirection.Up, new ItemNavigateArgs(e.Device, Keyboard.Modifiers)); 1500NavigateByPage(HighlightedInfo, FocusNavigationDirection.Down, new ItemNavigateArgs(e.Device, Keyboard.Modifiers)); 1506if (Keyboard.Modifiers == ModifierKeys.Control)
System\Windows\Controls\ContextMenu.cs (2)
433NavigateToStart(new ItemNavigateArgs(e.Device, Keyboard.Modifiers)); 442NavigateToEnd(new ItemNavigateArgs(e.Device, Keyboard.Modifiers));
System\Windows\Controls\DataGrid.cs (7)
1373(Keyboard.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift; 5340(_isDraggingSelection || ((Keyboard.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift)); 5352return (Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control; 5885new ItemNavigateArgs(e.KeyboardDevice, Keyboard.Modifiers), 6202PrepareToNavigateByPage(startingInfo, startingElement, direction, new ItemNavigateArgs(Keyboard.PrimaryDevice, Keyboard.Modifiers), out targetElement); 7126(Keyboard.Modifiers & ModifierKeys.Shift) != ModifierKeys.Shift); 7171if ((Keyboard.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift)
System\Windows\Controls\DataGridCell.cs (2)
906bool isCtrlKeyPressed = (Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control; 977ModifierKeys modifierKeys = Keyboard.Modifiers & ModifierMask;
System\Windows\Controls\DatePicker.cs (1)
1165if ((Keyboard.Modifiers & ModifierKeys.Alt) == ModifierKeys.Alt)
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
707if ((Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control)
System\Windows\Controls\ItemsControl.cs (4)
3380NavigateByLine(startingInfo, FocusNavigationDirection.Up, new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.Modifiers)); 3385NavigateByLine(startingInfo, FocusNavigationDirection.Down, new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.Modifiers)); 3400NavigateByLine(startingInfo, direction, new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.Modifiers)); 3410NavigateByLine(startingInfo, direction, new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.Modifiers));
System\Windows\Controls\ListBox.cs (24)
322if (((Keyboard.Modifiers) == (ModifierKeys.Control)) && (SelectionMode == SelectionMode.Extended)) 335if (((Keyboard.Modifiers) == (ModifierKeys.Control)) && (SelectionMode == SelectionMode.Extended)) 378new ItemNavigateArgs(e.Device, Keyboard.Modifiers))) 392NavigateToStart(new ItemNavigateArgs(e.Device, Keyboard.Modifiers)); 396NavigateToEnd(new ItemNavigateArgs(e.Device, Keyboard.Modifiers)); 412if ((Keyboard.Modifiers & (ModifierKeys.Control|ModifierKeys.Alt)) == ModifierKeys.Alt) 420if (IsTextSearchEnabled && Keyboard.Modifiers == ModifierKeys.None) 437if ((Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control) 453if ((Keyboard.Modifiers & (ModifierKeys.Control | ModifierKeys.Shift)) == ModifierKeys.Control) 458else if ((Keyboard.Modifiers & (ModifierKeys.Control | ModifierKeys.Shift)) == ModifierKeys.Shift) 463else if ((Keyboard.Modifiers & ModifierKeys.Shift) == 0) 483NavigateByPage(FocusNavigationDirection.Up, new ItemNavigateArgs(e.Device, Keyboard.Modifiers)); 487NavigateByPage(FocusNavigationDirection.Down, new ItemNavigateArgs(e.Device, Keyboard.Modifiers)); 503ModifierKeys modifierKeys = Keyboard.Modifiers & ModifierMask; 718else if ((Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control) 735if ((Keyboard.Modifiers & (ModifierKeys.Control | ModifierKeys.Shift)) == (ModifierKeys.Control | ModifierKeys.Shift)) 739else if ((Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control) 743else if ((Keyboard.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift) 757if ((Keyboard.Modifiers & (ModifierKeys.Control | ModifierKeys.Shift)) == 0) 774NavigateToItem(ItemInfoFromContainer(listItem), new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.Modifiers)); 921if ((Keyboard.Modifiers & ModifierKeys.Control) == 0) 932if ((Keyboard.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift) 934bool clearCurrentSelection = (Keyboard.Modifiers & ModifierKeys.Control) == 0; 937else if ((Keyboard.Modifiers & ModifierKeys.Control) == 0)
System\Windows\Controls\MenuItem.cs (6)
1912if ((Keyboard.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift) 1914NavigateToEnd(new ItemNavigateArgs(e.Device, Keyboard.Modifiers)); 1918NavigateToStart(new ItemNavigateArgs(e.Device, Keyboard.Modifiers)); 1961NavigateToStart(new ItemNavigateArgs(e.Device, Keyboard.Modifiers)); 1971NavigateToEnd(new ItemNavigateArgs(e.Device, Keyboard.Modifiers)); 2342NavigateToStart(new ItemNavigateArgs(Keyboard.PrimaryDevice, Keyboard.Modifiers));
System\Windows\Controls\PopupControlService.cs (2)
229ModifierKeys modifierKeys = Keyboard.Modifiers & ModifierMask; 262(Keyboard.Modifiers == ModifierKeys.None) && (CurrentToolTip?.FromKeyboard ?? false))
System\Windows\Controls\Primitives\ButtonBase.cs (2)
615if ((Keyboard.Modifiers & (ModifierKeys.Control | ModifierKeys.Alt)) != ModifierKeys.Alt) 679if ((Keyboard.Modifiers & (ModifierKeys.Control | ModifierKeys.Alt)) != ModifierKeys.Alt)
System\Windows\Controls\Primitives\ScrollBar.cs (1)
155((Keyboard.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift))
System\Windows\Controls\SinglePageViewer.cs (1)
426if ((Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control)
System\Windows\Controls\Slider.cs (1)
185if (keyEventArgs != null && slider != null && Keyboard.Modifiers == ModifierKeys.None)
System\Windows\Controls\TreeView.cs (5)
603return ((Keyboard.Modifiers & ModifierKeys.Control) == (ModifierKeys.Control)); 611return ((Keyboard.Modifiers & ModifierKeys.Shift) == (ModifierKeys.Shift)); 618return NavigateToStartInternal(new ItemNavigateArgs(Keyboard.PrimaryDevice, Keyboard.Modifiers), true /*shouldFocus*/, out container); 625return NavigateToEndInternal(new ItemNavigateArgs(Keyboard.PrimaryDevice, Keyboard.Modifiers), true /*shouldFocus*/, out container); 720new ItemNavigateArgs(e.Device, Keyboard.Modifiers));
System\Windows\Controls\TreeViewItem.cs (2)
656return ((Keyboard.Modifiers & ModifierKeys.Control) == (ModifierKeys.Control)); 701new ItemNavigateArgs(e.Device, Keyboard.Modifiers));
System\Windows\Documents\Hyperlink.cs (2)
499if (IsEnabled && (!IsEditable || ((Keyboard.Modifiers & ModifierKeys.Control) != 0))) 813if ((Keyboard.Modifiers & ModifierKeys.Control) == 0)
System\windows\Documents\TextEditorMouse.cs (2)
115else if (clickCount == 2 && (Keyboard.Modifiers & ModifierKeys.Shift) == 0 && This.Selection.IsEmpty) 122else if (clickCount == 3 && (Keyboard.Modifiers & ModifierKeys.Shift) == 0)
System\windows\Documents\TextSelection.cs (3)
798if ((Keyboard.Modifiers & ModifierKeys.Shift) != 0) 908bool disableWordExpansion = _textEditor.AutoWordSelection == false || ((Keyboard.Modifiers & ModifierKeys.Shift) != 0 && (Keyboard.Modifiers & ModifierKeys.Control) != 0);
System\Windows\Documents\TextStore.cs (2)
2995if ((Keyboard.Modifiers & ModifierKeys.Shift) != 0) 2999if ((Keyboard.Modifiers & ModifierKeys.Control) != 0)
System\Windows\Input\KeyboardNavigation.cs (2)
976return Navigate(currentElement, request, Keyboard.Modifiers); 3189if ((Keyboard.Modifiers & (ModifierKeys.Control | ModifierKeys.Shift | ModifierKeys.Windows)) == ModifierKeys.None)
System.Windows.Controls.Ribbon (8)
Microsoft\Windows\Controls\KeyTipService.cs (3)
639(Keyboard.Modifiers & ModifierKeys.Shift) != ModifierKeys.Shift && 640(Keyboard.Modifiers & ModifierKeys.Control) != ModifierKeys.Control); 1276return ((Keyboard.Modifiers & ModifierKeys.Alt) == ModifierKeys.Alt);
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1045bool shiftPressed = ((Keyboard.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift);
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (2)
419if ((Keyboard.Modifiers & ModifierKeys.Alt) != ModifierKeys.Alt) 452if ((Keyboard.Modifiers & ModifierKeys.Alt) != ModifierKeys.Alt)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
860if ((Keyboard.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift)
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
915if ((Keyboard.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift)