System\Windows\Controls\ComboBox.cs (10)
1141DependencyObject currentFocus = Keyboard.FocusedElement as DependencyObject;
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\ItemsControl.cs (8)
66EventManager.RegisterClassHandler(typeof(ItemsControl), Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGotFocus));
1872DependencyObject startingElement = Keyboard.FocusedElement as DependencyObject;
2222return NavigateByPage(FocusedInfo, Keyboard.FocusedElement as FrameworkElement, direction, itemNavigateArgs);
2614if (container == null || Keyboard.IsFocusable(container))
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 (25)
80EventManager.RegisterClassHandler(typeof(ListBox), Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGotKeyboardFocus));
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\Input\KeyboardNavigation.cs (13)
840Current.ShowFocusVisual(Keyboard.FocusedElement as DependencyObject);
976return Navigate(currentElement, request, Keyboard.Modifiers);
1188if(inputEventArgs.RoutedEvent != Keyboard.KeyDownEvent)
2736sourceUIElement.RemoveHandler(Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(_LostFocus));
2741sourceContentElement.RemoveHandler(Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(_LostFocus));
2753targetContentElement.AddHandler(Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(_LostFocus), true);
2765targetUIElement.AddHandler(Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(_LostFocus), true);
2793((UIElement)sender).RemoveHandler(Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(_LostFocus));
2795((ContentElement)sender).RemoveHandler(Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(_LostFocus));
3166if (inputEventArgs.RoutedEvent == Keyboard.LostKeyboardFocusEvent)
3177else if (inputEventArgs.RoutedEvent == Keyboard.KeyDownEvent)
3189if ((Keyboard.Modifiers & (ModifierKeys.Control | ModifierKeys.Shift | ModifierKeys.Windows)) == ModifierKeys.None)
3208else if (inputEventArgs.RoutedEvent == Keyboard.KeyUpEvent)